// Lean compiler output
// Module: Lean.Data.Options
// Imports: public import Lean.ImportingFlag public import Lean.Data.KVMap public import Lean.Data.NameMap.Basic
#include <lean/lean.h>
#if defined(__clang__)
#pragma clang diagnostic ignored "-Wunused-parameter"
#pragma clang diagnostic ignored "-Wunused-label"
#elif defined(__GNUC__) && !defined(__CLANG__)
#pragma GCC diagnostic ignored "-Wunused-parameter"
#pragma GCC diagnostic ignored "-Wunused-label"
#pragma GCC diagnostic ignored "-Wunused-but-set-variable"
#endif
#ifdef __cplusplus
extern "C" {
#endif
static lean_object* l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerOption__1___closed__3;
LEAN_EXPORT lean_object* l_Lean_getBoolOption___redArg___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Option_get___redArg(lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_OptionDecl_declName___autoParam___closed__1;
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldl___at___00Lean_getOptionDeclsArray_spec__0(lean_object*, lean_object*);
static lean_object* l_Lean_OptionDecl_declName___autoParam___closed__16;
static lean_object* l_Lean_OptionDecl_declName___autoParam___closed__6;
static lean_object* l_Lean_Option_registerBuiltinOption___closed__10;
lean_object* lean_mk_empty_array_with_capacity(lean_object*);
lean_object* l_Lean_TSyntax_getId(lean_object*);
static lean_object* l_Lean_Option_registerBuiltinOption___closed__14;
LEAN_EXPORT lean_object* l_Lean_Option_get___redArg___boxed(lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_OptionDecl_declName___autoParam___closed__21;
LEAN_EXPORT uint8_t l_Lean_Options_getInPattern(lean_object*);
lean_object* l_Lean_KVMap_instForInProdNameDataValueOfMonad___redArg(lean_object*);
static lean_object* l_Lean_registerOption___closed__1;
static lean_object* l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerOption__1___closed__0;
LEAN_EXPORT lean_object* l_Lean_OptionDecl_fullDescr(lean_object*);
static lean_object* l_Lean_Option_registerBuiltinOption___closed__21;
static lean_object* l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__19;
lean_object* lean_array_push(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Option_get_x3f___redArg(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Option_register___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerOption__1(lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__0;
static lean_object* l_Lean_Option_registerBuiltinOption___closed__7;
lean_object* l_Lean_KVMap_find(lean_object*, lean_object*);
lean_object* l_Lean_KVMap_getNat(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Option_setIfNotSet___redArg(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Option_registerBuiltinOption___closed__1;
LEAN_EXPORT lean_object* l_Lean_getNatOption___redArg___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_instInhabitedOption___redArg(lean_object*);
LEAN_EXPORT lean_object* l_Lean_getOptionDefaultValue___boxed(lean_object*, lean_object*);
static lean_object* l_Lean_registerOption___closed__0;
static lean_object* l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__18;
LEAN_EXPORT lean_object* l_Lean_instMonadWithOptionsOfMonadFunctor___redArg___lam__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Option_registerOption___closed__0;
LEAN_EXPORT lean_object* l_Lean_getBoolOption___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_instMonadWithOptionsOfMonadFunctor___redArg___lam__0(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Option_get_x3f___redArg___boxed(lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_OptionDecl_declName___autoParam___closed__27;
LEAN_EXPORT lean_object* l_Lean_instMonadWithOptionsOfMonadFunctor(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_instInhabitedOption_default___redArg(lean_object*);
LEAN_EXPORT lean_object* l_Lean_Option_registerOption;
LEAN_EXPORT lean_object* l_Lean_instMonadOptionsOfMonadLift___redArg(lean_object*, lean_object*);
static lean_object* l_Lean_Option_registerBuiltinOption___closed__11;
static lean_object* l_Lean_Option_registerBuiltinOption___closed__4;
static lean_object* l_Lean_OptionDecl_fullDescr___closed__0;
LEAN_EXPORT lean_object* l_Lean_getOptionDescr___boxed(lean_object*, lean_object*);
uint8_t l_Lean_Syntax_isOfKind(lean_object*, lean_object*);
static lean_object* l_Lean_OptionDecl_declName___autoParam___closed__18;
LEAN_EXPORT lean_object* l_Lean_Option_register___redArg(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Option_registerBuiltinOption___closed__15;
static lean_object* l_Lean_Option_registerBuiltinOption___closed__8;
static lean_object* l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__24;
static lean_object* l_Lean_OptionDecl_declName___autoParam___closed__12;
static lean_object* l_Lean_OptionDecl_declName___autoParam___closed__5;
uint8_t l_Lean_Name_isPrefixOf(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Option_getM___redArg___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_instInhabitedOptionDecl_default___closed__1;
LEAN_EXPORT lean_object* l_Lean_Option_set(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Array_mkArray0(lean_object*);
lean_object* lean_string_utf8_byte_size(lean_object*);
static lean_object* l_Lean_Option_registerBuiltinOption___closed__0;
LEAN_EXPORT lean_object* l_Lean_Option_register___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_instToStringOptions;
LEAN_EXPORT lean_object* l_Lean_instForInOptionsProdNameDataValueOfMonad___redArg(lean_object*);
static lean_object* l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__8;
static lean_object* l_Lean_OptionDecl_declName___autoParam___closed__19;
lean_object* l_Lean_initializing();
LEAN_EXPORT lean_object* l_Lean_withInPattern___redArg___lam__0(lean_object*);
static lean_object* l_Lean_OptionDecl_declName___autoParam___closed__11;
lean_object* l_Lean_Name_mkStr3(lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_OptionDecl_declName___autoParam___closed__8;
LEAN_EXPORT lean_object* l_Lean_instMonadOptionsOfMonadLift(lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Array_mkArray1___redArg(lean_object*);
LEAN_EXPORT lean_object* l_Lean_Option_registerBuiltinOption;
extern lean_object* l_Lean_instInhabitedDataValue_default;
LEAN_EXPORT lean_object* l_Lean_Option_set___redArg(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_instInhabitedOptionDecl_default___closed__0;
LEAN_EXPORT lean_object* l_Lean_getOptionDecl___boxed(lean_object*, lean_object*);
static lean_object* l_Lean_OptionDecl_declName___autoParam___closed__23;
lean_object* l_Lean_instQuoteNameMkStr1___private__1(lean_object*);
LEAN_EXPORT lean_object* l_Lean_Option_get_x3f___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_withInPattern___redArg___lam__0___closed__1;
lean_object* l_Lean_SourceInfo_fromRef(lean_object*, uint8_t);
static lean_object* l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__17;
static lean_object* l_Lean_Option_registerBuiltinOption___closed__6;
static lean_object* l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerOption__1___closed__4;
lean_object* l_Array_empty(lean_object*);
static lean_object* l_Lean_Option_registerBuiltinOption___closed__23;
static lean_object* l_Lean_OptionDecl_declName___autoParam___closed__7;
static lean_object* l_Lean_OptionDecl_declName___autoParam___closed__14;
static lean_object* l_Lean_Option_registerBuiltinOption___closed__16;
LEAN_EXPORT lean_object* l_Lean_getNatOption(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_OptionDecl_fullDescr___closed__3;
static lean_object* l_Lean_Option_registerBuiltinOption___closed__18;
static lean_object* l_Lean_Option_registerOption___closed__3;
static lean_object* l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__25;
static lean_object* l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__22;
static lean_object* l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__21;
LEAN_EXPORT lean_object* l___private_Lean_Data_Options_0__Lean_initFn_00___x40_Lean_Data_Options_2861175937____hygCtx___hyg_2____boxed(lean_object*);
lean_object* lean_st_ref_get(lean_object*);
LEAN_EXPORT lean_object* l_Lean_instInhabitedOptionDecl_default;
static lean_object* l_Lean_OptionDecl_fullDescr___closed__2;
static lean_object* l_Lean_Option_registerBuiltinOption___closed__17;
static lean_object* l_Lean_OptionDecl_declName___autoParam___closed__28;
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldlM___at___00Std_DTreeMap_Internal_Impl_foldl___at___00Lean_getOptionDeclsArray_spec__0_spec__0(lean_object*, lean_object*);
lean_object* l_Lean_Syntax_getOptional_x3f(lean_object*);
lean_object* lean_st_mk_ref(lean_object*);
static lean_object* l_Lean_Option_registerBuiltinOption___closed__20;
LEAN_EXPORT lean_object* l_Lean_getOptionDecls();
LEAN_EXPORT lean_object* l_Lean_getOptionDeclsArray___boxed(lean_object*);
static lean_object* l_Lean_instInhabitedOptionDecl_default___closed__2;
static lean_object* l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__6;
static lean_object* l_Lean_Option_registerBuiltinOption___closed__26;
static lean_object* l_Lean_Option_registerBuiltinOption___closed__32;
lean_object* l_Lean_Syntax_node3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_getOptionDecls___boxed(lean_object*);
LEAN_EXPORT lean_object* l_Lean_Option_get(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Option_get___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_getBoolOption(lean_object*, lean_object*, lean_object*, lean_object*, uint8_t);
LEAN_EXPORT lean_object* l_Lean_instForInOptionsProdNameDataValueOfMonad(lean_object*, lean_object*);
lean_object* l_Std_DTreeMap_Internal_Impl_insert___at___00Lean_NameMap_insert_spec__0___redArg(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___auto_00___x40_Lean_Data_Options_1379820584____hygCtx___hyg_20_;
lean_object* lean_mk_io_user_error(lean_object*);
static lean_object* l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__23;
LEAN_EXPORT lean_object* l_Lean_getBoolOption___redArg(lean_object*, lean_object*, lean_object*, uint8_t);
static lean_object* l_Lean_Option_registerOption___closed__4;
lean_object* l_Lean_addMacroScope(lean_object*, lean_object*, lean_object*);
lean_object* l_Std_DTreeMap_Internal_Impl_Const_get_x3f___at___00Lean_NameMap_find_x3f_spec__0___redArg(lean_object*, lean_object*);
static lean_object* l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__10;
static lean_object* l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__14;
lean_object* l_Lean_Syntax_node2(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Option_registerBuiltinOption___closed__24;
lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_getNatOption___redArg___lam__0(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_OptionDecl_declName___autoParam___closed__10;
static lean_object* l_Lean_Option_registerBuiltinOption___closed__29;
LEAN_EXPORT lean_object* l_Lean_instInhabitedOptionDecls;
static lean_object* l_Lean_Option_registerOption___closed__5;
LEAN_EXPORT lean_object* l_Lean_Option_getM___redArg(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_registerOption___closed__2;
static lean_object* l_Lean_OptionDecl_declName___autoParam___closed__4;
LEAN_EXPORT lean_object* l___private_Lean_Data_Options_0__Lean_initFn_00___x40_Lean_Data_Options_2861175937____hygCtx___hyg_2_();
LEAN_EXPORT lean_object* l_Lean_withInPattern(lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_KVMap_setBool(lean_object*, lean_object*, uint8_t);
static lean_object* l_Lean_Option_registerBuiltinOption___closed__30;
lean_object* l_String_toRawSubstring_x27(lean_object*);
extern lean_object* l_Lean_KVMap_instToString;
LEAN_EXPORT lean_object* l_Lean_withInPattern___redArg(lean_object*, lean_object*);
static lean_object* l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__7;
LEAN_EXPORT lean_object* lean_register_option(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Option_get_x3f(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Option_registerOption___closed__11;
LEAN_EXPORT lean_object* l_Lean_Option_getM(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Name_toStringWithToken___at___00Lean_Name_toString_spec__0(lean_object*, uint8_t);
LEAN_EXPORT lean_object* l_Lean_Option_register(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Syntax_node4(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Option_registerBuiltinOption___closed__22;
LEAN_EXPORT lean_object* l_Lean_Option_setIfNotSet(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_OptionDecl_declName___autoParam___closed__17;
static lean_object* l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__3;
LEAN_EXPORT lean_object* l_Lean_Options_getInPattern___boxed(lean_object*);
static lean_object* l_Lean_OptionDecl_declName___autoParam___closed__22;
static lean_object* l_Lean_OptionDecl_fullDescr___closed__1;
static lean_object* l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__9;
static lean_object* l_Lean_instBEqOptions___closed__0;
static lean_object* l_Lean_OptionDecl_declName___autoParam___closed__15;
static lean_object* l_Lean_Option_registerBuiltinOption___closed__2;
static lean_object* l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__13;
LEAN_EXPORT lean_object* l_Lean_instInhabitedOption(lean_object*, lean_object*);
static lean_object* l_Lean_Option_registerBuiltinOption___closed__5;
uint8_t lean_nat_dec_eq(lean_object*, lean_object*);
static lean_object* l_Lean_Option_registerBuiltinOption___closed__33;
LEAN_EXPORT lean_object* l_Lean_instInhabitedOptionDecl;
static lean_object* l_Lean_OptionDecl_declName___autoParam___closed__26;
LEAN_EXPORT lean_object* l_Lean_instInhabitedOptions;
static lean_object* l_Lean_OptionDecl_declName___autoParam___closed__9;
lean_object* l_Lean_Name_mkStr2(lean_object*, lean_object*);
static lean_object* l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__5;
lean_object* l_Lean_KVMap_eqv___boxed(lean_object*, lean_object*);
lean_object* l_Lean_Syntax_node7(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Syntax_node1(lean_object*, lean_object*, lean_object*);
uint8_t l_Lean_KVMap_getBool(lean_object*, lean_object*, uint8_t);
static lean_object* l_Lean_OptionDecl_declName___autoParam___closed__3;
LEAN_EXPORT lean_object* lean_get_option_decls_array();
LEAN_EXPORT lean_object* l_Lean_getOptionDefaultValue(lean_object*);
static lean_object* l_Lean_withInPattern___redArg___lam__0___closed__0;
LEAN_EXPORT lean_object* l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1(lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Option_registerBuiltinOption___closed__34;
LEAN_EXPORT lean_object* l_Lean_instInhabitedOption_default(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_instBEqOptions;
static lean_object* l_Lean_Option_registerBuiltinOption___closed__19;
static lean_object* l_Lean_Option_registerOption___closed__8;
lean_object* l_Array_append___redArg(lean_object*, lean_object*);
static lean_object* l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__12;
uint8_t l_Std_DTreeMap_Internal_Impl_contains___at___00Lean_NameMap_contains_spec__0___redArg(lean_object*, lean_object*);
lean_object* l_Lean_KVMap_insert(lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__20;
LEAN_EXPORT lean_object* l_Lean_getOptionDecl(lean_object*);
static lean_object* l_Lean_Option_registerBuiltinOption___closed__25;
static lean_object* l_Lean_Option_registerBuiltinOption___closed__27;
LEAN_EXPORT lean_object* l_Lean_registerOption___boxed(lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_OptionDecl_declName___autoParam___closed__13;
static lean_object* l_Lean_Option_registerOption___closed__9;
static lean_object* l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__1;
static lean_object* l_Lean_registerOption___closed__4;
static lean_object* l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__4;
LEAN_EXPORT lean_object* l_Lean_Option_getM___redArg___lam__0(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerOption__1___closed__2;
static lean_object* l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__16;
static lean_object* l_Lean_Option_registerBuiltinOption___closed__9;
LEAN_EXPORT lean_object* l_Lean_OptionDecl_declName___autoParam;
static lean_object* l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerOption__1___closed__5;
LEAN_EXPORT lean_object* l___private_Lean_Data_Options_0__Lean_optionDeclsRef;
static lean_object* l_Lean_getOptionDeclsArray___closed__0;
static lean_object* l_Lean_OptionDecl_declName___autoParam___closed__24;
lean_object* lean_st_ref_set(lean_object*, lean_object*);
static lean_object* l_Lean_getOptionDecl___closed__1;
lean_object* l_Lean_Name_mkStr1(lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldl___at___00Lean_getOptionDeclsArray_spec__0___boxed(lean_object*, lean_object*);
lean_object* l_Lean_Name_mkStr4(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_getNatOption___redArg(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Option_registerBuiltinOption___closed__28;
lean_object* lean_string_append(lean_object*, lean_object*);
static lean_object* l_Lean_OptionDecl_declName___autoParam___closed__0;
LEAN_EXPORT lean_object* l_Lean_getBoolOption___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__15;
static lean_object* l_Lean_getOptionDecl___closed__0;
static lean_object* l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__11;
static lean_object* l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__26;
lean_object* l_Lean_mkAtom(lean_object*);
static lean_object* l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__27;
static lean_object* l_Lean_OptionDecl_declName___autoParam___closed__20;
static lean_object* l_Lean_registerOption___closed__3;
static lean_object* l_Lean_Option_registerOption___closed__2;
static lean_object* l_Lean_Option_registerBuiltinOption___closed__3;
LEAN_EXPORT lean_object* l_Lean_instMonadWithOptionsOfMonadFunctor___redArg(lean_object*, lean_object*);
static lean_object* l_Lean_Option_registerOption___closed__1;
static lean_object* l_Lean_Option_registerOption___closed__12;
uint8_t l_Lean_KVMap_contains(lean_object*, lean_object*);
static lean_object* l_Lean_Option_registerOption___closed__7;
static lean_object* l_Lean_OptionDecl_declName___autoParam___closed__2;
LEAN_EXPORT lean_object* l_Lean_getOptionDescr(lean_object*);
LEAN_EXPORT lean_object* l_Lean_getBoolOption___redArg___lam__0(lean_object*, uint8_t, lean_object*, lean_object*);
static lean_object* l_Lean_OptionDecl_declName___autoParam___closed__25;
static lean_object* l_Lean_Option_registerOption___closed__10;
LEAN_EXPORT lean_object* l_Lean_Options_empty;
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldlM___at___00Std_DTreeMap_Internal_Impl_foldl___at___00Lean_getOptionDeclsArray_spec__0_spec__0___boxed(lean_object*, lean_object*);
static lean_object* l_Lean_Option_registerBuiltinOption___closed__31;
static lean_object* l_Lean_Option_registerOption___closed__6;
static lean_object* l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__2;
static lean_object* l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerOption__1___closed__1;
static lean_object* l_Lean_Option_registerBuiltinOption___closed__13;
static lean_object* l_Lean_Option_registerBuiltinOption___closed__12;
static lean_object* _init_l_Lean_Options_empty() {
_start:
{
lean_object* x_1; 
x_1 = lean_box(0);
return x_1;
}
}
static lean_object* _init_l_Lean_instInhabitedOptions() {
_start:
{
lean_object* x_1; 
x_1 = lean_box(0);
return x_1;
}
}
static lean_object* _init_l_Lean_instToStringOptions() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_KVMap_instToString;
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lean_instForInOptionsProdNameDataValueOfMonad(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Lean_KVMap_instForInProdNameDataValueOfMonad___redArg(x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_instForInOptionsProdNameDataValueOfMonad___redArg(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l_Lean_KVMap_instForInProdNameDataValueOfMonad___redArg(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_instBEqOptions___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_KVMap_eqv___boxed), 2, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_instBEqOptions() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_instBEqOptions___closed__0;
return x_1;
}
}
static lean_object* _init_l_Lean_OptionDecl_declName___autoParam___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Lean", 4, 4);
return x_1;
}
}
static lean_object* _init_l_Lean_OptionDecl_declName___autoParam___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Parser", 6, 6);
return x_1;
}
}
static lean_object* _init_l_Lean_OptionDecl_declName___autoParam___closed__2() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Tactic", 6, 6);
return x_1;
}
}
static lean_object* _init_l_Lean_OptionDecl_declName___autoParam___closed__3() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("tacticSeq", 9, 9);
return x_1;
}
}
static lean_object* _init_l_Lean_OptionDecl_declName___autoParam___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l_Lean_OptionDecl_declName___autoParam___closed__3;
x_2 = l_Lean_OptionDecl_declName___autoParam___closed__2;
x_3 = l_Lean_OptionDecl_declName___autoParam___closed__1;
x_4 = l_Lean_OptionDecl_declName___autoParam___closed__0;
x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1);
return x_5;
}
}
static lean_object* _init_l_Lean_OptionDecl_declName___autoParam___closed__5() {
_start:
{
lean_object* x_1; 
x_1 = l_Array_empty(lean_box(0));
return x_1;
}
}
static lean_object* _init_l_Lean_OptionDecl_declName___autoParam___closed__6() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("tacticSeq1Indented", 18, 18);
return x_1;
}
}
static lean_object* _init_l_Lean_OptionDecl_declName___autoParam___closed__7() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l_Lean_OptionDecl_declName___autoParam___closed__6;
x_2 = l_Lean_OptionDecl_declName___autoParam___closed__2;
x_3 = l_Lean_OptionDecl_declName___autoParam___closed__1;
x_4 = l_Lean_OptionDecl_declName___autoParam___closed__0;
x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1);
return x_5;
}
}
static lean_object* _init_l_Lean_OptionDecl_declName___autoParam___closed__8() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("null", 4, 4);
return x_1;
}
}
static lean_object* _init_l_Lean_OptionDecl_declName___autoParam___closed__9() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_OptionDecl_declName___autoParam___closed__8;
x_2 = l_Lean_Name_mkStr1(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_OptionDecl_declName___autoParam___closed__10() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("exact", 5, 5);
return x_1;
}
}
static lean_object* _init_l_Lean_OptionDecl_declName___autoParam___closed__11() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l_Lean_OptionDecl_declName___autoParam___closed__10;
x_2 = l_Lean_OptionDecl_declName___autoParam___closed__2;
x_3 = l_Lean_OptionDecl_declName___autoParam___closed__1;
x_4 = l_Lean_OptionDecl_declName___autoParam___closed__0;
x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1);
return x_5;
}
}
static lean_object* _init_l_Lean_OptionDecl_declName___autoParam___closed__12() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_OptionDecl_declName___autoParam___closed__10;
x_2 = l_Lean_mkAtom(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_OptionDecl_declName___autoParam___closed__13() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_OptionDecl_declName___autoParam___closed__12;
x_2 = l_Lean_OptionDecl_declName___autoParam___closed__5;
x_3 = lean_array_push(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_OptionDecl_declName___autoParam___closed__14() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Term", 4, 4);
return x_1;
}
}
static lean_object* _init_l_Lean_OptionDecl_declName___autoParam___closed__15() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("declName", 8, 8);
return x_1;
}
}
static lean_object* _init_l_Lean_OptionDecl_declName___autoParam___closed__16() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l_Lean_OptionDecl_declName___autoParam___closed__15;
x_2 = l_Lean_OptionDecl_declName___autoParam___closed__14;
x_3 = l_Lean_OptionDecl_declName___autoParam___closed__1;
x_4 = l_Lean_OptionDecl_declName___autoParam___closed__0;
x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1);
return x_5;
}
}
static lean_object* _init_l_Lean_OptionDecl_declName___autoParam___closed__17() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("decl_name%", 10, 10);
return x_1;
}
}
static lean_object* _init_l_Lean_OptionDecl_declName___autoParam___closed__18() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_OptionDecl_declName___autoParam___closed__17;
x_2 = l_Lean_mkAtom(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_OptionDecl_declName___autoParam___closed__19() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_OptionDecl_declName___autoParam___closed__18;
x_2 = l_Lean_OptionDecl_declName___autoParam___closed__5;
x_3 = lean_array_push(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_OptionDecl_declName___autoParam___closed__20() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = l_Lean_OptionDecl_declName___autoParam___closed__19;
x_2 = l_Lean_OptionDecl_declName___autoParam___closed__16;
x_3 = lean_box(2);
x_4 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_4, 0, x_3);
lean_ctor_set(x_4, 1, x_2);
lean_ctor_set(x_4, 2, x_1);
return x_4;
}
}
static lean_object* _init_l_Lean_OptionDecl_declName___autoParam___closed__21() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_OptionDecl_declName___autoParam___closed__20;
x_2 = l_Lean_OptionDecl_declName___autoParam___closed__13;
x_3 = lean_array_push(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_OptionDecl_declName___autoParam___closed__22() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = l_Lean_OptionDecl_declName___autoParam___closed__21;
x_2 = l_Lean_OptionDecl_declName___autoParam___closed__11;
x_3 = lean_box(2);
x_4 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_4, 0, x_3);
lean_ctor_set(x_4, 1, x_2);
lean_ctor_set(x_4, 2, x_1);
return x_4;
}
}
static lean_object* _init_l_Lean_OptionDecl_declName___autoParam___closed__23() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_OptionDecl_declName___autoParam___closed__22;
x_2 = l_Lean_OptionDecl_declName___autoParam___closed__5;
x_3 = lean_array_push(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_OptionDecl_declName___autoParam___closed__24() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = l_Lean_OptionDecl_declName___autoParam___closed__23;
x_2 = l_Lean_OptionDecl_declName___autoParam___closed__9;
x_3 = lean_box(2);
x_4 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_4, 0, x_3);
lean_ctor_set(x_4, 1, x_2);
lean_ctor_set(x_4, 2, x_1);
return x_4;
}
}
static lean_object* _init_l_Lean_OptionDecl_declName___autoParam___closed__25() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_OptionDecl_declName___autoParam___closed__24;
x_2 = l_Lean_OptionDecl_declName___autoParam___closed__5;
x_3 = lean_array_push(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_OptionDecl_declName___autoParam___closed__26() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = l_Lean_OptionDecl_declName___autoParam___closed__25;
x_2 = l_Lean_OptionDecl_declName___autoParam___closed__7;
x_3 = lean_box(2);
x_4 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_4, 0, x_3);
lean_ctor_set(x_4, 1, x_2);
lean_ctor_set(x_4, 2, x_1);
return x_4;
}
}
static lean_object* _init_l_Lean_OptionDecl_declName___autoParam___closed__27() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_OptionDecl_declName___autoParam___closed__26;
x_2 = l_Lean_OptionDecl_declName___autoParam___closed__5;
x_3 = lean_array_push(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_OptionDecl_declName___autoParam___closed__28() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = l_Lean_OptionDecl_declName___autoParam___closed__27;
x_2 = l_Lean_OptionDecl_declName___autoParam___closed__4;
x_3 = lean_box(2);
x_4 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_4, 0, x_3);
lean_ctor_set(x_4, 1, x_2);
lean_ctor_set(x_4, 2, x_1);
return x_4;
}
}
static lean_object* _init_l_Lean_OptionDecl_declName___autoParam() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_OptionDecl_declName___autoParam___closed__28;
return x_1;
}
}
static lean_object* _init_l_Lean_instInhabitedOptionDecl_default___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_instInhabitedDataValue_default;
return x_1;
}
}
static lean_object* _init_l_Lean_instInhabitedOptionDecl_default___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("", 0, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_instInhabitedOptionDecl_default___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = l_Lean_instInhabitedOptionDecl_default___closed__1;
x_2 = l_Lean_instInhabitedOptionDecl_default___closed__0;
x_3 = lean_box(0);
x_4 = lean_alloc_ctor(0, 4, 0);
lean_ctor_set(x_4, 0, x_3);
lean_ctor_set(x_4, 1, x_3);
lean_ctor_set(x_4, 2, x_2);
lean_ctor_set(x_4, 3, x_1);
return x_4;
}
}
static lean_object* _init_l_Lean_instInhabitedOptionDecl_default() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_instInhabitedOptionDecl_default___closed__2;
return x_1;
}
}
static lean_object* _init_l_Lean_instInhabitedOptionDecl() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_instInhabitedOptionDecl_default;
return x_1;
}
}
static lean_object* _init_l_Lean_OptionDecl_fullDescr___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("This is a backwards compatibility option, intended to help migrating to new Lean releases. It may be removed without further notice 6 months after their introduction. Please report an issue if you rely on this option.", 217, 217);
return x_1;
}
}
static lean_object* _init_l_Lean_OptionDecl_fullDescr___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("backward", 8, 8);
return x_1;
}
}
static lean_object* _init_l_Lean_OptionDecl_fullDescr___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_OptionDecl_fullDescr___closed__1;
x_2 = l_Lean_Name_mkStr1(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_OptionDecl_fullDescr___closed__3() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("\n\n", 2, 2);
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lean_OptionDecl_fullDescr(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_6; lean_object* x_7; lean_object* x_8; uint8_t x_9; 
x_6 = lean_ctor_get(x_1, 0);
lean_inc(x_6);
x_7 = lean_ctor_get(x_1, 3);
lean_inc_ref(x_7);
lean_dec_ref(x_1);
x_8 = l_Lean_OptionDecl_fullDescr___closed__2;
x_9 = l_Lean_Name_isPrefixOf(x_8, x_6);
lean_dec(x_6);
if (x_9 == 0)
{
return x_7;
}
else
{
lean_object* x_10; lean_object* x_11; uint8_t x_12; 
x_10 = lean_string_utf8_byte_size(x_7);
x_11 = lean_unsigned_to_nat(0u);
x_12 = lean_nat_dec_eq(x_10, x_11);
lean_dec(x_10);
if (x_12 == 0)
{
lean_object* x_13; lean_object* x_14; 
x_13 = l_Lean_OptionDecl_fullDescr___closed__3;
x_14 = lean_string_append(x_7, x_13);
x_2 = x_14;
goto block_5;
}
else
{
x_2 = x_7;
goto block_5;
}
}
block_5:
{
lean_object* x_3; lean_object* x_4; 
x_3 = l_Lean_OptionDecl_fullDescr___closed__0;
x_4 = lean_string_append(x_2, x_3);
return x_4;
}
}
}
static lean_object* _init_l_Lean_instInhabitedOptionDecls() {
_start:
{
lean_object* x_1; 
x_1 = lean_box(1);
return x_1;
}
}
LEAN_EXPORT lean_object* l___private_Lean_Data_Options_0__Lean_initFn_00___x40_Lean_Data_Options_2861175937____hygCtx___hyg_2_() {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_2 = lean_box(1);
x_3 = lean_st_mk_ref(x_2);
x_4 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_4, 0, x_3);
return x_4;
}
}
LEAN_EXPORT lean_object* l___private_Lean_Data_Options_0__Lean_initFn_00___x40_Lean_Data_Options_2861175937____hygCtx___hyg_2____boxed(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l___private_Lean_Data_Options_0__Lean_initFn_00___x40_Lean_Data_Options_2861175937____hygCtx___hyg_2_();
return x_2;
}
}
static lean_object* _init_l_Lean_registerOption___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Failed to register option: Options can only be registered during initialization", 79, 79);
return x_1;
}
}
static lean_object* _init_l_Lean_registerOption___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_registerOption___closed__0;
x_2 = lean_mk_io_user_error(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_registerOption___closed__2() {
_start:
{
lean_object* x_1; 
x_1 = l___private_Lean_Data_Options_0__Lean_optionDeclsRef;
return x_1;
}
}
static lean_object* _init_l_Lean_registerOption___closed__3() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Invalid option declaration `", 28, 28);
return x_1;
}
}
static lean_object* _init_l_Lean_registerOption___closed__4() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("`: Option already exists", 24, 24);
return x_1;
}
}
LEAN_EXPORT lean_object* lean_register_option(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_4; 
x_4 = l_Lean_initializing();
if (lean_obj_tag(x_4) == 0)
{
uint8_t x_5; 
x_5 = !lean_is_exclusive(x_4);
if (x_5 == 0)
{
lean_object* x_6; uint8_t x_7; 
x_6 = lean_ctor_get(x_4, 0);
x_7 = lean_unbox(x_6);
lean_dec(x_6);
if (x_7 == 0)
{
lean_object* x_8; 
lean_dec_ref(x_2);
lean_dec(x_1);
x_8 = l_Lean_registerOption___closed__1;
lean_ctor_set_tag(x_4, 1);
lean_ctor_set(x_4, 0, x_8);
return x_4;
}
else
{
lean_object* x_9; lean_object* x_10; uint8_t x_11; 
x_9 = l_Lean_registerOption___closed__2;
x_10 = lean_st_ref_get(x_9);
x_11 = l_Std_DTreeMap_Internal_Impl_contains___at___00Lean_NameMap_contains_spec__0___redArg(x_1, x_10);
if (x_11 == 0)
{
lean_object* x_12; lean_object* x_13; 
x_12 = l_Std_DTreeMap_Internal_Impl_insert___at___00Lean_NameMap_insert_spec__0___redArg(x_1, x_2, x_10);
x_13 = lean_st_ref_set(x_9, x_12);
lean_ctor_set(x_4, 0, x_13);
return x_4;
}
else
{
lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; 
lean_dec(x_10);
lean_dec_ref(x_2);
x_14 = l_Lean_registerOption___closed__3;
x_15 = l_Lean_Name_toStringWithToken___at___00Lean_Name_toString_spec__0(x_1, x_11);
x_16 = lean_string_append(x_14, x_15);
lean_dec_ref(x_15);
x_17 = l_Lean_registerOption___closed__4;
x_18 = lean_string_append(x_16, x_17);
x_19 = lean_mk_io_user_error(x_18);
lean_ctor_set_tag(x_4, 1);
lean_ctor_set(x_4, 0, x_19);
return x_4;
}
}
}
else
{
lean_object* x_20; uint8_t x_21; 
x_20 = lean_ctor_get(x_4, 0);
lean_inc(x_20);
lean_dec(x_4);
x_21 = lean_unbox(x_20);
lean_dec(x_20);
if (x_21 == 0)
{
lean_object* x_22; lean_object* x_23; 
lean_dec_ref(x_2);
lean_dec(x_1);
x_22 = l_Lean_registerOption___closed__1;
x_23 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_23, 0, x_22);
return x_23;
}
else
{
lean_object* x_24; lean_object* x_25; uint8_t x_26; 
x_24 = l_Lean_registerOption___closed__2;
x_25 = lean_st_ref_get(x_24);
x_26 = l_Std_DTreeMap_Internal_Impl_contains___at___00Lean_NameMap_contains_spec__0___redArg(x_1, x_25);
if (x_26 == 0)
{
lean_object* x_27; lean_object* x_28; lean_object* x_29; 
x_27 = l_Std_DTreeMap_Internal_Impl_insert___at___00Lean_NameMap_insert_spec__0___redArg(x_1, x_2, x_25);
x_28 = lean_st_ref_set(x_24, x_27);
x_29 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_29, 0, x_28);
return x_29;
}
else
{
lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; 
lean_dec(x_25);
lean_dec_ref(x_2);
x_30 = l_Lean_registerOption___closed__3;
x_31 = l_Lean_Name_toStringWithToken___at___00Lean_Name_toString_spec__0(x_1, x_26);
x_32 = lean_string_append(x_30, x_31);
lean_dec_ref(x_31);
x_33 = l_Lean_registerOption___closed__4;
x_34 = lean_string_append(x_32, x_33);
x_35 = lean_mk_io_user_error(x_34);
x_36 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_36, 0, x_35);
return x_36;
}
}
}
}
else
{
uint8_t x_37; 
lean_dec_ref(x_2);
lean_dec(x_1);
x_37 = !lean_is_exclusive(x_4);
if (x_37 == 0)
{
return x_4;
}
else
{
lean_object* x_38; lean_object* x_39; 
x_38 = lean_ctor_get(x_4, 0);
lean_inc(x_38);
lean_dec(x_4);
x_39 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_39, 0, x_38);
return x_39;
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_registerOption___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = lean_register_option(x_1, x_2);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Lean_getOptionDecls() {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_2 = l_Lean_registerOption___closed__2;
x_3 = lean_st_ref_get(x_2);
x_4 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_4, 0, x_3);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Lean_getOptionDecls___boxed(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l_Lean_getOptionDecls();
return x_2;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldlM___at___00Std_DTreeMap_Internal_Impl_foldl___at___00Lean_getOptionDeclsArray_spec__0_spec__0(lean_object* x_1, lean_object* x_2) {
_start:
{
if (lean_obj_tag(x_2) == 0)
{
lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; 
x_3 = lean_ctor_get(x_2, 1);
x_4 = lean_ctor_get(x_2, 2);
x_5 = lean_ctor_get(x_2, 3);
x_6 = lean_ctor_get(x_2, 4);
x_7 = l_Std_DTreeMap_Internal_Impl_foldlM___at___00Std_DTreeMap_Internal_Impl_foldl___at___00Lean_getOptionDeclsArray_spec__0_spec__0(x_1, x_5);
lean_inc(x_4);
lean_inc(x_3);
x_8 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_8, 0, x_3);
lean_ctor_set(x_8, 1, x_4);
x_9 = lean_array_push(x_7, x_8);
x_1 = x_9;
x_2 = x_6;
goto _start;
}
else
{
return x_1;
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldl___at___00Lean_getOptionDeclsArray_spec__0(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Std_DTreeMap_Internal_Impl_foldlM___at___00Std_DTreeMap_Internal_Impl_foldl___at___00Lean_getOptionDeclsArray_spec__0_spec__0(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_getOptionDeclsArray___closed__0() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = lean_unsigned_to_nat(0u);
x_2 = lean_mk_empty_array_with_capacity(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* lean_get_option_decls_array() {
_start:
{
lean_object* x_2; uint8_t x_3; 
x_2 = l_Lean_getOptionDecls();
x_3 = !lean_is_exclusive(x_2);
if (x_3 == 0)
{
lean_object* x_4; lean_object* x_5; lean_object* x_6; 
x_4 = lean_ctor_get(x_2, 0);
x_5 = l_Lean_getOptionDeclsArray___closed__0;
x_6 = l_Std_DTreeMap_Internal_Impl_foldlM___at___00Std_DTreeMap_Internal_Impl_foldl___at___00Lean_getOptionDeclsArray_spec__0_spec__0(x_5, x_4);
lean_dec(x_4);
lean_ctor_set(x_2, 0, x_6);
return x_2;
}
else
{
lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; 
x_7 = lean_ctor_get(x_2, 0);
lean_inc(x_7);
lean_dec(x_2);
x_8 = l_Lean_getOptionDeclsArray___closed__0;
x_9 = l_Std_DTreeMap_Internal_Impl_foldlM___at___00Std_DTreeMap_Internal_Impl_foldl___at___00Lean_getOptionDeclsArray_spec__0_spec__0(x_8, x_7);
lean_dec(x_7);
x_10 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_10, 0, x_9);
return x_10;
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldl___at___00Lean_getOptionDeclsArray_spec__0___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Std_DTreeMap_Internal_Impl_foldl___at___00Lean_getOptionDeclsArray_spec__0(x_1, x_2);
lean_dec(x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldlM___at___00Std_DTreeMap_Internal_Impl_foldl___at___00Lean_getOptionDeclsArray_spec__0_spec__0___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Std_DTreeMap_Internal_Impl_foldlM___at___00Std_DTreeMap_Internal_Impl_foldl___at___00Lean_getOptionDeclsArray_spec__0_spec__0(x_1, x_2);
lean_dec(x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_getOptionDeclsArray___boxed(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_get_option_decls_array();
return x_2;
}
}
static lean_object* _init_l_Lean_getOptionDecl___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Unknown option `", 16, 16);
return x_1;
}
}
static lean_object* _init_l_Lean_getOptionDecl___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("`", 1, 1);
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lean_getOptionDecl(lean_object* x_1) {
_start:
{
lean_object* x_3; uint8_t x_4; 
x_3 = l_Lean_getOptionDecls();
x_4 = !lean_is_exclusive(x_3);
if (x_4 == 0)
{
lean_object* x_5; lean_object* x_6; 
x_5 = lean_ctor_get(x_3, 0);
x_6 = l_Std_DTreeMap_Internal_Impl_Const_get_x3f___at___00Lean_NameMap_find_x3f_spec__0___redArg(x_5, x_1);
lean_dec(x_5);
if (lean_obj_tag(x_6) == 1)
{
lean_object* x_7; 
lean_dec(x_1);
x_7 = lean_ctor_get(x_6, 0);
lean_inc(x_7);
lean_dec_ref(x_6);
lean_ctor_set(x_3, 0, x_7);
return x_3;
}
else
{
lean_object* x_8; uint8_t x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; 
lean_dec(x_6);
x_8 = l_Lean_getOptionDecl___closed__0;
x_9 = 1;
x_10 = l_Lean_Name_toStringWithToken___at___00Lean_Name_toString_spec__0(x_1, x_9);
x_11 = lean_string_append(x_8, x_10);
lean_dec_ref(x_10);
x_12 = l_Lean_getOptionDecl___closed__1;
x_13 = lean_string_append(x_11, x_12);
x_14 = lean_mk_io_user_error(x_13);
lean_ctor_set_tag(x_3, 1);
lean_ctor_set(x_3, 0, x_14);
return x_3;
}
}
else
{
lean_object* x_15; lean_object* x_16; 
x_15 = lean_ctor_get(x_3, 0);
lean_inc(x_15);
lean_dec(x_3);
x_16 = l_Std_DTreeMap_Internal_Impl_Const_get_x3f___at___00Lean_NameMap_find_x3f_spec__0___redArg(x_15, x_1);
lean_dec(x_15);
if (lean_obj_tag(x_16) == 1)
{
lean_object* x_17; lean_object* x_18; 
lean_dec(x_1);
x_17 = lean_ctor_get(x_16, 0);
lean_inc(x_17);
lean_dec_ref(x_16);
x_18 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_18, 0, x_17);
return x_18;
}
else
{
lean_object* x_19; uint8_t x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; 
lean_dec(x_16);
x_19 = l_Lean_getOptionDecl___closed__0;
x_20 = 1;
x_21 = l_Lean_Name_toStringWithToken___at___00Lean_Name_toString_spec__0(x_1, x_20);
x_22 = lean_string_append(x_19, x_21);
lean_dec_ref(x_21);
x_23 = l_Lean_getOptionDecl___closed__1;
x_24 = lean_string_append(x_22, x_23);
x_25 = lean_mk_io_user_error(x_24);
x_26 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_26, 0, x_25);
return x_26;
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_getOptionDecl___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Lean_getOptionDecl(x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_getOptionDefaultValue(lean_object* x_1) {
_start:
{
lean_object* x_3; 
x_3 = l_Lean_getOptionDecl(x_1);
if (lean_obj_tag(x_3) == 0)
{
uint8_t x_4; 
x_4 = !lean_is_exclusive(x_3);
if (x_4 == 0)
{
lean_object* x_5; lean_object* x_6; 
x_5 = lean_ctor_get(x_3, 0);
x_6 = lean_ctor_get(x_5, 2);
lean_inc_ref(x_6);
lean_dec(x_5);
lean_ctor_set(x_3, 0, x_6);
return x_3;
}
else
{
lean_object* x_7; lean_object* x_8; lean_object* x_9; 
x_7 = lean_ctor_get(x_3, 0);
lean_inc(x_7);
lean_dec(x_3);
x_8 = lean_ctor_get(x_7, 2);
lean_inc_ref(x_8);
lean_dec(x_7);
x_9 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_9, 0, x_8);
return x_9;
}
}
else
{
uint8_t x_10; 
x_10 = !lean_is_exclusive(x_3);
if (x_10 == 0)
{
return x_3;
}
else
{
lean_object* x_11; lean_object* x_12; 
x_11 = lean_ctor_get(x_3, 0);
lean_inc(x_11);
lean_dec(x_3);
x_12 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_12, 0, x_11);
return x_12;
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_getOptionDefaultValue___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Lean_getOptionDefaultValue(x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_getOptionDescr(lean_object* x_1) {
_start:
{
lean_object* x_3; 
x_3 = l_Lean_getOptionDecl(x_1);
if (lean_obj_tag(x_3) == 0)
{
uint8_t x_4; 
x_4 = !lean_is_exclusive(x_3);
if (x_4 == 0)
{
lean_object* x_5; lean_object* x_6; 
x_5 = lean_ctor_get(x_3, 0);
x_6 = lean_ctor_get(x_5, 3);
lean_inc_ref(x_6);
lean_dec(x_5);
lean_ctor_set(x_3, 0, x_6);
return x_3;
}
else
{
lean_object* x_7; lean_object* x_8; lean_object* x_9; 
x_7 = lean_ctor_get(x_3, 0);
lean_inc(x_7);
lean_dec(x_3);
x_8 = lean_ctor_get(x_7, 3);
lean_inc_ref(x_8);
lean_dec(x_7);
x_9 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_9, 0, x_8);
return x_9;
}
}
else
{
uint8_t x_10; 
x_10 = !lean_is_exclusive(x_3);
if (x_10 == 0)
{
return x_3;
}
else
{
lean_object* x_11; lean_object* x_12; 
x_11 = lean_ctor_get(x_3, 0);
lean_inc(x_11);
lean_dec(x_3);
x_12 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_12, 0, x_11);
return x_12;
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_getOptionDescr___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Lean_getOptionDescr(x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_instMonadOptionsOfMonadLift(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = lean_apply_2(x_3, lean_box(0), x_4);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_instMonadOptionsOfMonadLift___redArg(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_apply_2(x_1, lean_box(0), x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_getBoolOption___redArg___lam__0(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
uint8_t x_5; lean_object* x_6; lean_object* x_7; 
x_5 = l_Lean_KVMap_getBool(x_4, x_1, x_2);
x_6 = lean_box(x_5);
x_7 = lean_apply_2(x_3, lean_box(0), x_6);
return x_7;
}
}
LEAN_EXPORT lean_object* l_Lean_getBoolOption___redArg___lam__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
uint8_t x_5; lean_object* x_6; 
x_5 = lean_unbox(x_2);
x_6 = l_Lean_getBoolOption___redArg___lam__0(x_1, x_5, x_3, x_4);
lean_dec(x_4);
lean_dec(x_1);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Lean_getBoolOption___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, uint8_t x_4) {
_start:
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; 
x_5 = lean_ctor_get(x_1, 0);
lean_inc_ref(x_5);
x_6 = lean_ctor_get(x_1, 1);
lean_inc(x_6);
lean_dec_ref(x_1);
x_7 = lean_ctor_get(x_5, 1);
lean_inc(x_7);
lean_dec_ref(x_5);
x_8 = lean_box(x_4);
x_9 = lean_alloc_closure((void*)(l_Lean_getBoolOption___redArg___lam__0___boxed), 4, 3);
lean_closure_set(x_9, 0, x_3);
lean_closure_set(x_9, 1, x_8);
lean_closure_set(x_9, 2, x_7);
x_10 = lean_apply_4(x_6, lean_box(0), lean_box(0), x_2, x_9);
return x_10;
}
}
LEAN_EXPORT lean_object* l_Lean_getBoolOption(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, uint8_t x_5) {
_start:
{
lean_object* x_6; 
x_6 = l_Lean_getBoolOption___redArg(x_2, x_3, x_4, x_5);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Lean_getBoolOption___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
uint8_t x_6; lean_object* x_7; 
x_6 = lean_unbox(x_5);
x_7 = l_Lean_getBoolOption(x_1, x_2, x_3, x_4, x_6);
return x_7;
}
}
LEAN_EXPORT lean_object* l_Lean_getBoolOption___redArg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
uint8_t x_5; lean_object* x_6; 
x_5 = lean_unbox(x_4);
x_6 = l_Lean_getBoolOption___redArg(x_1, x_2, x_3, x_5);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Lean_getNatOption___redArg___lam__0(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; lean_object* x_6; 
x_5 = l_Lean_KVMap_getNat(x_4, x_1, x_2);
x_6 = lean_apply_2(x_3, lean_box(0), x_5);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Lean_getNatOption___redArg___lam__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l_Lean_getNatOption___redArg___lam__0(x_1, x_2, x_3, x_4);
lean_dec(x_4);
lean_dec(x_2);
lean_dec(x_1);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_getNatOption___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; 
x_5 = lean_ctor_get(x_1, 0);
lean_inc_ref(x_5);
x_6 = lean_ctor_get(x_1, 1);
lean_inc(x_6);
lean_dec_ref(x_1);
x_7 = lean_ctor_get(x_5, 1);
lean_inc(x_7);
lean_dec_ref(x_5);
x_8 = lean_alloc_closure((void*)(l_Lean_getNatOption___redArg___lam__0___boxed), 4, 3);
lean_closure_set(x_8, 0, x_3);
lean_closure_set(x_8, 1, x_4);
lean_closure_set(x_8, 2, x_7);
x_9 = lean_apply_4(x_6, lean_box(0), lean_box(0), x_2, x_8);
return x_9;
}
}
LEAN_EXPORT lean_object* l_Lean_getNatOption(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_6; 
x_6 = l_Lean_getNatOption___redArg(x_2, x_3, x_4, x_5);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Lean_instMonadWithOptionsOfMonadFunctor___redArg___lam__0(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = lean_apply_3(x_1, lean_box(0), x_2, x_4);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_instMonadWithOptionsOfMonadFunctor___redArg___lam__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_6; lean_object* x_7; 
x_6 = lean_alloc_closure((void*)(l_Lean_instMonadWithOptionsOfMonadFunctor___redArg___lam__0), 4, 2);
lean_closure_set(x_6, 0, x_1);
lean_closure_set(x_6, 1, x_4);
x_7 = lean_apply_3(x_2, lean_box(0), x_6, x_5);
return x_7;
}
}
LEAN_EXPORT lean_object* l_Lean_instMonadWithOptionsOfMonadFunctor___redArg(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Lean_instMonadWithOptionsOfMonadFunctor___redArg___lam__1), 5, 2);
lean_closure_set(x_3, 0, x_2);
lean_closure_set(x_3, 1, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_instMonadWithOptionsOfMonadFunctor(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l_Lean_instMonadWithOptionsOfMonadFunctor___redArg(x_3, x_4);
return x_5;
}
}
static lean_object* _init_l_Lean_withInPattern___redArg___lam__0___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("_inPattern", 10, 10);
return x_1;
}
}
static lean_object* _init_l_Lean_withInPattern___redArg___lam__0___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_withInPattern___redArg___lam__0___closed__0;
x_2 = l_Lean_Name_mkStr1(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_withInPattern___redArg___lam__0(lean_object* x_1) {
_start:
{
lean_object* x_2; uint8_t x_3; lean_object* x_4; 
x_2 = l_Lean_withInPattern___redArg___lam__0___closed__1;
x_3 = 1;
x_4 = l_Lean_KVMap_setBool(x_1, x_2, x_3);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Lean_withInPattern___redArg(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; lean_object* x_4; 
x_3 = lean_alloc_closure((void*)(l_Lean_withInPattern___redArg___lam__0), 1, 0);
x_4 = lean_apply_3(x_1, lean_box(0), x_3, x_2);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Lean_withInPattern(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l_Lean_withInPattern___redArg(x_3, x_4);
return x_5;
}
}
LEAN_EXPORT uint8_t l_Lean_Options_getInPattern(lean_object* x_1) {
_start:
{
lean_object* x_2; uint8_t x_3; uint8_t x_4; 
x_2 = l_Lean_withInPattern___redArg___lam__0___closed__1;
x_3 = 0;
x_4 = l_Lean_KVMap_getBool(x_1, x_2, x_3);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Lean_Options_getInPattern___boxed(lean_object* x_1) {
_start:
{
uint8_t x_2; lean_object* x_3; 
x_2 = l_Lean_Options_getInPattern(x_1);
lean_dec(x_1);
x_3 = lean_box(x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_instInhabitedOption_default___redArg(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; 
x_2 = lean_box(0);
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_instInhabitedOption_default(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Lean_instInhabitedOption_default___redArg(x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_instInhabitedOption(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Lean_instInhabitedOption_default___redArg(x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_instInhabitedOption___redArg(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l_Lean_instInhabitedOption_default___redArg(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_Option_get_x3f___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; lean_object* x_5; lean_object* x_6; 
x_4 = lean_ctor_get(x_3, 0);
x_5 = lean_ctor_get(x_1, 1);
lean_inc_ref(x_5);
lean_dec_ref(x_1);
x_6 = l_Lean_KVMap_find(x_2, x_4);
if (lean_obj_tag(x_6) == 0)
{
lean_object* x_7; 
lean_dec_ref(x_5);
x_7 = lean_box(0);
return x_7;
}
else
{
lean_object* x_8; lean_object* x_9; 
x_8 = lean_ctor_get(x_6, 0);
lean_inc(x_8);
lean_dec_ref(x_6);
x_9 = lean_apply_1(x_5, x_8);
return x_9;
}
}
}
LEAN_EXPORT lean_object* l_Lean_Option_get_x3f(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l_Lean_Option_get_x3f___redArg(x_2, x_3, x_4);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_Option_get_x3f___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l_Lean_Option_get_x3f(x_1, x_2, x_3, x_4);
lean_dec_ref(x_4);
lean_dec(x_3);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_Option_get_x3f___redArg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l_Lean_Option_get_x3f___redArg(x_1, x_2, x_3);
lean_dec_ref(x_3);
lean_dec(x_2);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Lean_Option_get___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; 
x_4 = lean_ctor_get(x_3, 0);
x_5 = lean_ctor_get(x_3, 1);
x_6 = lean_ctor_get(x_1, 1);
lean_inc_ref(x_6);
lean_dec_ref(x_1);
x_7 = l_Lean_KVMap_find(x_2, x_4);
if (lean_obj_tag(x_7) == 0)
{
lean_dec_ref(x_6);
lean_inc(x_5);
return x_5;
}
else
{
lean_object* x_8; lean_object* x_9; 
x_8 = lean_ctor_get(x_7, 0);
lean_inc(x_8);
lean_dec_ref(x_7);
x_9 = lean_apply_1(x_6, x_8);
if (lean_obj_tag(x_9) == 0)
{
lean_inc(x_5);
return x_5;
}
else
{
lean_object* x_10; 
x_10 = lean_ctor_get(x_9, 0);
lean_inc(x_10);
lean_dec_ref(x_9);
return x_10;
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_Option_get(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l_Lean_Option_get___redArg(x_2, x_3, x_4);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_Option_get___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l_Lean_Option_get(x_1, x_2, x_3, x_4);
lean_dec_ref(x_4);
lean_dec(x_3);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_Option_get___redArg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l_Lean_Option_get___redArg(x_1, x_2, x_3);
lean_dec_ref(x_3);
lean_dec(x_2);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Lean_Option_getM___redArg___lam__0(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; lean_object* x_6; 
x_5 = l_Lean_Option_get___redArg(x_1, x_4, x_2);
x_6 = lean_apply_2(x_3, lean_box(0), x_5);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Lean_Option_getM___redArg___lam__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l_Lean_Option_getM___redArg___lam__0(x_1, x_2, x_3, x_4);
lean_dec(x_4);
lean_dec_ref(x_2);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_Option_getM___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; 
x_5 = lean_ctor_get(x_1, 0);
lean_inc_ref(x_5);
x_6 = lean_ctor_get(x_1, 1);
lean_inc(x_6);
lean_dec_ref(x_1);
x_7 = lean_ctor_get(x_5, 1);
lean_inc(x_7);
lean_dec_ref(x_5);
x_8 = lean_alloc_closure((void*)(l_Lean_Option_getM___redArg___lam__0___boxed), 4, 3);
lean_closure_set(x_8, 0, x_3);
lean_closure_set(x_8, 1, x_4);
lean_closure_set(x_8, 2, x_7);
x_9 = lean_apply_4(x_6, lean_box(0), lean_box(0), x_2, x_8);
return x_9;
}
}
LEAN_EXPORT lean_object* l_Lean_Option_getM(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
_start:
{
lean_object* x_7; 
x_7 = l_Lean_Option_getM___redArg(x_3, x_4, x_5, x_6);
return x_7;
}
}
LEAN_EXPORT lean_object* l_Lean_Option_set___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; 
x_5 = lean_ctor_get(x_3, 0);
lean_inc(x_5);
lean_dec_ref(x_3);
x_6 = lean_ctor_get(x_1, 0);
lean_inc_ref(x_6);
lean_dec_ref(x_1);
x_7 = lean_apply_1(x_6, x_4);
x_8 = l_Lean_KVMap_insert(x_2, x_5, x_7);
return x_8;
}
}
LEAN_EXPORT lean_object* l_Lean_Option_set(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_6; 
x_6 = l_Lean_Option_set___redArg(x_2, x_3, x_4, x_5);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Lean_Option_setIfNotSet___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; uint8_t x_6; 
x_5 = lean_ctor_get(x_3, 0);
x_6 = l_Lean_KVMap_contains(x_2, x_5);
if (x_6 == 0)
{
lean_object* x_7; 
x_7 = l_Lean_Option_set___redArg(x_1, x_2, x_3, x_4);
return x_7;
}
else
{
lean_dec(x_4);
lean_dec_ref(x_3);
lean_dec_ref(x_1);
return x_2;
}
}
}
LEAN_EXPORT lean_object* l_Lean_Option_setIfNotSet(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_6; 
x_6 = l_Lean_Option_setIfNotSet___redArg(x_2, x_3, x_4, x_5);
return x_6;
}
}
static lean_object* _init_l___auto_00___x40_Lean_Data_Options_1379820584____hygCtx___hyg_20_() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_OptionDecl_declName___autoParam___closed__28;
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lean_Option_register___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_6; uint8_t x_7; 
x_6 = lean_ctor_get(x_1, 0);
lean_inc_ref(x_6);
lean_dec_ref(x_1);
x_7 = !lean_is_exclusive(x_3);
if (x_7 == 0)
{
lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; 
x_8 = lean_ctor_get(x_3, 0);
x_9 = lean_ctor_get(x_3, 1);
lean_inc(x_8);
x_10 = lean_apply_1(x_6, x_8);
lean_inc(x_2);
x_11 = lean_alloc_ctor(0, 4, 0);
lean_ctor_set(x_11, 0, x_2);
lean_ctor_set(x_11, 1, x_4);
lean_ctor_set(x_11, 2, x_10);
lean_ctor_set(x_11, 3, x_9);
lean_inc(x_2);
x_12 = lean_register_option(x_2, x_11);
if (lean_obj_tag(x_12) == 0)
{
uint8_t x_13; 
x_13 = !lean_is_exclusive(x_12);
if (x_13 == 0)
{
lean_object* x_14; 
x_14 = lean_ctor_get(x_12, 0);
lean_dec(x_14);
lean_ctor_set(x_3, 1, x_8);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_12, 0, x_3);
return x_12;
}
else
{
lean_object* x_15; 
lean_dec(x_12);
lean_ctor_set(x_3, 1, x_8);
lean_ctor_set(x_3, 0, x_2);
x_15 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_15, 0, x_3);
return x_15;
}
}
else
{
uint8_t x_16; 
lean_free_object(x_3);
lean_dec(x_8);
lean_dec(x_2);
x_16 = !lean_is_exclusive(x_12);
if (x_16 == 0)
{
return x_12;
}
else
{
lean_object* x_17; lean_object* x_18; 
x_17 = lean_ctor_get(x_12, 0);
lean_inc(x_17);
lean_dec(x_12);
x_18 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_18, 0, x_17);
return x_18;
}
}
}
else
{
lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; 
x_19 = lean_ctor_get(x_3, 0);
x_20 = lean_ctor_get(x_3, 1);
lean_inc(x_20);
lean_inc(x_19);
lean_dec(x_3);
lean_inc(x_19);
x_21 = lean_apply_1(x_6, x_19);
lean_inc(x_2);
x_22 = lean_alloc_ctor(0, 4, 0);
lean_ctor_set(x_22, 0, x_2);
lean_ctor_set(x_22, 1, x_4);
lean_ctor_set(x_22, 2, x_21);
lean_ctor_set(x_22, 3, x_20);
lean_inc(x_2);
x_23 = lean_register_option(x_2, x_22);
if (lean_obj_tag(x_23) == 0)
{
lean_object* x_24; lean_object* x_25; lean_object* x_26; 
if (lean_is_exclusive(x_23)) {
 lean_ctor_release(x_23, 0);
 x_24 = x_23;
} else {
 lean_dec_ref(x_23);
 x_24 = lean_box(0);
}
x_25 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_25, 0, x_2);
lean_ctor_set(x_25, 1, x_19);
if (lean_is_scalar(x_24)) {
 x_26 = lean_alloc_ctor(0, 1, 0);
} else {
 x_26 = x_24;
}
lean_ctor_set(x_26, 0, x_25);
return x_26;
}
else
{
lean_object* x_27; lean_object* x_28; lean_object* x_29; 
lean_dec(x_19);
lean_dec(x_2);
x_27 = lean_ctor_get(x_23, 0);
lean_inc(x_27);
if (lean_is_exclusive(x_23)) {
 lean_ctor_release(x_23, 0);
 x_28 = x_23;
} else {
 lean_dec_ref(x_23);
 x_28 = lean_box(0);
}
if (lean_is_scalar(x_28)) {
 x_29 = lean_alloc_ctor(1, 1, 0);
} else {
 x_29 = x_28;
}
lean_ctor_set(x_29, 0, x_27);
return x_29;
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_Option_register(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_7; 
x_7 = l_Lean_Option_register___redArg(x_2, x_3, x_4, x_5);
return x_7;
}
}
LEAN_EXPORT lean_object* l_Lean_Option_register___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
_start:
{
lean_object* x_7; 
x_7 = l_Lean_Option_register(x_1, x_2, x_3, x_4, x_5);
return x_7;
}
}
LEAN_EXPORT lean_object* l_Lean_Option_register___redArg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_6; 
x_6 = l_Lean_Option_register___redArg(x_1, x_2, x_3, x_4);
return x_6;
}
}
static lean_object* _init_l_Lean_Option_registerBuiltinOption___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Option", 6, 6);
return x_1;
}
}
static lean_object* _init_l_Lean_Option_registerBuiltinOption___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("registerBuiltinOption", 21, 21);
return x_1;
}
}
static lean_object* _init_l_Lean_Option_registerBuiltinOption___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = l_Lean_Option_registerBuiltinOption___closed__1;
x_2 = l_Lean_Option_registerBuiltinOption___closed__0;
x_3 = l_Lean_OptionDecl_declName___autoParam___closed__0;
x_4 = l_Lean_Name_mkStr3(x_3, x_2, x_1);
return x_4;
}
}
static lean_object* _init_l_Lean_Option_registerBuiltinOption___closed__3() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("andthen", 7, 7);
return x_1;
}
}
static lean_object* _init_l_Lean_Option_registerBuiltinOption___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Option_registerBuiltinOption___closed__3;
x_2 = l_Lean_Name_mkStr1(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Option_registerBuiltinOption___closed__5() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("optional", 8, 8);
return x_1;
}
}
static lean_object* _init_l_Lean_Option_registerBuiltinOption___closed__6() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Option_registerBuiltinOption___closed__5;
x_2 = l_Lean_Name_mkStr1(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Option_registerBuiltinOption___closed__7() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("docComment", 10, 10);
return x_1;
}
}
static lean_object* _init_l_Lean_Option_registerBuiltinOption___closed__8() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Option_registerBuiltinOption___closed__7;
x_2 = l_Lean_Name_mkStr1(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Option_registerBuiltinOption___closed__9() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Option_registerBuiltinOption___closed__8;
x_2 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Option_registerBuiltinOption___closed__10() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Option_registerBuiltinOption___closed__9;
x_2 = l_Lean_Option_registerBuiltinOption___closed__6;
x_3 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Option_registerBuiltinOption___closed__11() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("visibility", 10, 10);
return x_1;
}
}
static lean_object* _init_l_Lean_Option_registerBuiltinOption___closed__12() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Option_registerBuiltinOption___closed__11;
x_2 = l_Lean_Name_mkStr1(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Option_registerBuiltinOption___closed__13() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Option_registerBuiltinOption___closed__12;
x_2 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Option_registerBuiltinOption___closed__14() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Option_registerBuiltinOption___closed__13;
x_2 = l_Lean_Option_registerBuiltinOption___closed__6;
x_3 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Option_registerBuiltinOption___closed__15() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = l_Lean_Option_registerBuiltinOption___closed__14;
x_2 = l_Lean_Option_registerBuiltinOption___closed__10;
x_3 = l_Lean_Option_registerBuiltinOption___closed__4;
x_4 = lean_alloc_ctor(2, 3, 0);
lean_ctor_set(x_4, 0, x_3);
lean_ctor_set(x_4, 1, x_2);
lean_ctor_set(x_4, 2, x_1);
return x_4;
}
}
static lean_object* _init_l_Lean_Option_registerBuiltinOption___closed__16() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("register_builtin_option", 23, 23);
return x_1;
}
}
static lean_object* _init_l_Lean_Option_registerBuiltinOption___closed__17() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Option_registerBuiltinOption___closed__16;
x_2 = lean_alloc_ctor(5, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Option_registerBuiltinOption___closed__18() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = l_Lean_Option_registerBuiltinOption___closed__17;
x_2 = l_Lean_Option_registerBuiltinOption___closed__15;
x_3 = l_Lean_Option_registerBuiltinOption___closed__4;
x_4 = lean_alloc_ctor(2, 3, 0);
lean_ctor_set(x_4, 0, x_3);
lean_ctor_set(x_4, 1, x_2);
lean_ctor_set(x_4, 2, x_1);
return x_4;
}
}
static lean_object* _init_l_Lean_Option_registerBuiltinOption___closed__19() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("ident", 5, 5);
return x_1;
}
}
static lean_object* _init_l_Lean_Option_registerBuiltinOption___closed__20() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Option_registerBuiltinOption___closed__19;
x_2 = l_Lean_Name_mkStr1(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Option_registerBuiltinOption___closed__21() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Option_registerBuiltinOption___closed__20;
x_2 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Option_registerBuiltinOption___closed__22() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = l_Lean_Option_registerBuiltinOption___closed__21;
x_2 = l_Lean_Option_registerBuiltinOption___closed__18;
x_3 = l_Lean_Option_registerBuiltinOption___closed__4;
x_4 = lean_alloc_ctor(2, 3, 0);
lean_ctor_set(x_4, 0, x_3);
lean_ctor_set(x_4, 1, x_2);
lean_ctor_set(x_4, 2, x_1);
return x_4;
}
}
static lean_object* _init_l_Lean_Option_registerBuiltinOption___closed__23() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked(" : ", 3, 3);
return x_1;
}
}
static lean_object* _init_l_Lean_Option_registerBuiltinOption___closed__24() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Option_registerBuiltinOption___closed__23;
x_2 = lean_alloc_ctor(5, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Option_registerBuiltinOption___closed__25() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = l_Lean_Option_registerBuiltinOption___closed__24;
x_2 = l_Lean_Option_registerBuiltinOption___closed__22;
x_3 = l_Lean_Option_registerBuiltinOption___closed__4;
x_4 = lean_alloc_ctor(2, 3, 0);
lean_ctor_set(x_4, 0, x_3);
lean_ctor_set(x_4, 1, x_2);
lean_ctor_set(x_4, 2, x_1);
return x_4;
}
}
static lean_object* _init_l_Lean_Option_registerBuiltinOption___closed__26() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("term", 4, 4);
return x_1;
}
}
static lean_object* _init_l_Lean_Option_registerBuiltinOption___closed__27() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Option_registerBuiltinOption___closed__26;
x_2 = l_Lean_Name_mkStr1(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Option_registerBuiltinOption___closed__28() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_unsigned_to_nat(0u);
x_2 = l_Lean_Option_registerBuiltinOption___closed__27;
x_3 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Option_registerBuiltinOption___closed__29() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = l_Lean_Option_registerBuiltinOption___closed__28;
x_2 = l_Lean_Option_registerBuiltinOption___closed__25;
x_3 = l_Lean_Option_registerBuiltinOption___closed__4;
x_4 = lean_alloc_ctor(2, 3, 0);
lean_ctor_set(x_4, 0, x_3);
lean_ctor_set(x_4, 1, x_2);
lean_ctor_set(x_4, 2, x_1);
return x_4;
}
}
static lean_object* _init_l_Lean_Option_registerBuiltinOption___closed__30() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked(" := ", 4, 4);
return x_1;
}
}
static lean_object* _init_l_Lean_Option_registerBuiltinOption___closed__31() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Option_registerBuiltinOption___closed__30;
x_2 = lean_alloc_ctor(5, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Option_registerBuiltinOption___closed__32() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = l_Lean_Option_registerBuiltinOption___closed__31;
x_2 = l_Lean_Option_registerBuiltinOption___closed__29;
x_3 = l_Lean_Option_registerBuiltinOption___closed__4;
x_4 = lean_alloc_ctor(2, 3, 0);
lean_ctor_set(x_4, 0, x_3);
lean_ctor_set(x_4, 1, x_2);
lean_ctor_set(x_4, 2, x_1);
return x_4;
}
}
static lean_object* _init_l_Lean_Option_registerBuiltinOption___closed__33() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = l_Lean_Option_registerBuiltinOption___closed__28;
x_2 = l_Lean_Option_registerBuiltinOption___closed__32;
x_3 = l_Lean_Option_registerBuiltinOption___closed__4;
x_4 = lean_alloc_ctor(2, 3, 0);
lean_ctor_set(x_4, 0, x_3);
lean_ctor_set(x_4, 1, x_2);
lean_ctor_set(x_4, 2, x_1);
return x_4;
}
}
static lean_object* _init_l_Lean_Option_registerBuiltinOption___closed__34() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = l_Lean_Option_registerBuiltinOption___closed__33;
x_2 = lean_unsigned_to_nat(1022u);
x_3 = l_Lean_Option_registerBuiltinOption___closed__2;
x_4 = lean_alloc_ctor(3, 3, 0);
lean_ctor_set(x_4, 0, x_3);
lean_ctor_set(x_4, 1, x_2);
lean_ctor_set(x_4, 2, x_1);
return x_4;
}
}
static lean_object* _init_l_Lean_Option_registerBuiltinOption() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_Option_registerBuiltinOption___closed__34;
return x_1;
}
}
static lean_object* _init_l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("initializeKeyword", 17, 17);
return x_1;
}
}
static lean_object* _init_l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("builtin_initialize", 18, 18);
return x_1;
}
}
static lean_object* _init_l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__2() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("typeSpec", 8, 8);
return x_1;
}
}
static lean_object* _init_l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__3() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked(":", 1, 1);
return x_1;
}
}
static lean_object* _init_l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__4() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("app", 3, 3);
return x_1;
}
}
static lean_object* _init_l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__5() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Lean.Option", 11, 11);
return x_1;
}
}
static lean_object* _init_l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__6() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__5;
x_2 = l_String_toRawSubstring_x27(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__7() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Option_registerBuiltinOption___closed__0;
x_2 = l_Lean_OptionDecl_declName___autoParam___closed__0;
x_3 = l_Lean_Name_mkStr2(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__8() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__7;
x_3 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__9() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__7;
x_2 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__10() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__9;
x_3 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__11() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__10;
x_2 = l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__8;
x_3 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__12() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("←", 3, 1);
return x_1;
}
}
static lean_object* _init_l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__13() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("doSeqIndent", 11, 11);
return x_1;
}
}
static lean_object* _init_l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__14() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("doSeqItem", 9, 9);
return x_1;
}
}
static lean_object* _init_l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__15() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("doExpr", 6, 6);
return x_1;
}
}
static lean_object* _init_l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__16() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Lean.Option.register", 20, 20);
return x_1;
}
}
static lean_object* _init_l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__17() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__16;
x_2 = l_String_toRawSubstring_x27(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__18() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("register", 8, 8);
return x_1;
}
}
static lean_object* _init_l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__19() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__18;
x_2 = l_Lean_Option_registerBuiltinOption___closed__0;
x_3 = l_Lean_OptionDecl_declName___autoParam___closed__0;
x_4 = l_Lean_Name_mkStr3(x_3, x_2, x_1);
return x_4;
}
}
static lean_object* _init_l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__20() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__19;
x_3 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__21() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__20;
x_3 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__22() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Command", 7, 7);
return x_1;
}
}
static lean_object* _init_l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__23() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("initialize", 10, 10);
return x_1;
}
}
static lean_object* _init_l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__24() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__23;
x_2 = l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__22;
x_3 = l_Lean_OptionDecl_declName___autoParam___closed__1;
x_4 = l_Lean_OptionDecl_declName___autoParam___closed__0;
x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1);
return x_5;
}
}
static lean_object* _init_l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__25() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("declModifiers", 13, 13);
return x_1;
}
}
static lean_object* _init_l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__26() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__25;
x_2 = l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__22;
x_3 = l_Lean_OptionDecl_declName___autoParam___closed__1;
x_4 = l_Lean_OptionDecl_declName___autoParam___closed__0;
x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1);
return x_5;
}
}
static lean_object* _init_l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__27() {
_start:
{
lean_object* x_1; 
x_1 = l_Array_mkArray0(lean_box(0));
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; lean_object* x_5; uint8_t x_6; 
x_4 = l_Lean_OptionDecl_declName___autoParam___closed__0;
x_5 = l_Lean_Option_registerBuiltinOption___closed__2;
lean_inc(x_1);
x_6 = l_Lean_Syntax_isOfKind(x_1, x_5);
if (x_6 == 0)
{
lean_object* x_7; lean_object* x_8; 
lean_dec_ref(x_2);
lean_dec(x_1);
x_7 = lean_box(1);
x_8 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_8, 0, x_7);
lean_ctor_set(x_8, 1, x_3);
return x_8;
}
else
{
lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_97; lean_object* x_98; lean_object* x_114; lean_object* x_121; 
x_9 = lean_unsigned_to_nat(0u);
x_10 = l_Lean_Syntax_getArg(x_1, x_9);
x_11 = lean_unsigned_to_nat(1u);
x_12 = l_Lean_Syntax_getArg(x_1, x_11);
x_13 = lean_unsigned_to_nat(3u);
x_14 = l_Lean_Syntax_getArg(x_1, x_13);
x_15 = lean_unsigned_to_nat(5u);
x_16 = l_Lean_Syntax_getArg(x_1, x_15);
x_17 = lean_unsigned_to_nat(7u);
x_18 = l_Lean_Syntax_getArg(x_1, x_17);
lean_dec(x_1);
x_121 = l_Lean_Syntax_getOptional_x3f(x_12);
lean_dec(x_12);
if (lean_obj_tag(x_121) == 0)
{
lean_object* x_122; 
x_122 = lean_box(0);
x_114 = x_122;
goto block_120;
}
else
{
uint8_t x_123; 
x_123 = !lean_is_exclusive(x_121);
if (x_123 == 0)
{
x_114 = x_121;
goto block_120;
}
else
{
lean_object* x_124; lean_object* x_125; 
x_124 = lean_ctor_get(x_121, 0);
lean_inc(x_124);
lean_dec(x_121);
x_125 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_125, 0, x_124);
x_114 = x_125;
goto block_120;
}
}
block_78:
{
lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; 
x_31 = l_Array_append___redArg(x_25, x_30);
lean_dec_ref(x_30);
lean_inc(x_26);
lean_inc(x_23);
x_32 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_32, 0, x_23);
lean_ctor_set(x_32, 1, x_26);
lean_ctor_set(x_32, 2, x_31);
lean_inc_n(x_29, 5);
lean_inc(x_23);
x_33 = l_Lean_Syntax_node7(x_23, x_22, x_21, x_29, x_32, x_29, x_29, x_29, x_29);
x_34 = l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__0;
lean_inc_ref(x_28);
x_35 = l_Lean_Name_mkStr4(x_4, x_28, x_27, x_34);
x_36 = l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__1;
lean_inc(x_23);
x_37 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_37, 0, x_23);
lean_ctor_set(x_37, 1, x_36);
lean_inc(x_23);
x_38 = l_Lean_Syntax_node1(x_23, x_35, x_37);
x_39 = l_Lean_OptionDecl_declName___autoParam___closed__14;
x_40 = l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__2;
lean_inc_ref(x_28);
x_41 = l_Lean_Name_mkStr4(x_4, x_28, x_39, x_40);
x_42 = l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__3;
lean_inc(x_23);
x_43 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_43, 0, x_23);
lean_ctor_set(x_43, 1, x_42);
x_44 = l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__4;
lean_inc_ref(x_28);
x_45 = l_Lean_Name_mkStr4(x_4, x_28, x_39, x_44);
x_46 = l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__6;
x_47 = l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__7;
lean_inc(x_24);
lean_inc(x_20);
x_48 = l_Lean_addMacroScope(x_20, x_47, x_24);
x_49 = l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__11;
lean_inc(x_23);
x_50 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_50, 0, x_23);
lean_ctor_set(x_50, 1, x_46);
lean_ctor_set(x_50, 2, x_48);
lean_ctor_set(x_50, 3, x_49);
lean_inc(x_26);
lean_inc(x_23);
x_51 = l_Lean_Syntax_node1(x_23, x_26, x_16);
lean_inc(x_45);
lean_inc(x_23);
x_52 = l_Lean_Syntax_node2(x_23, x_45, x_50, x_51);
lean_inc(x_23);
x_53 = l_Lean_Syntax_node2(x_23, x_41, x_43, x_52);
x_54 = l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__12;
lean_inc(x_23);
x_55 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_55, 0, x_23);
lean_ctor_set(x_55, 1, x_54);
lean_inc(x_14);
lean_inc(x_26);
lean_inc(x_23);
x_56 = l_Lean_Syntax_node3(x_23, x_26, x_14, x_53, x_55);
x_57 = l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__13;
lean_inc_ref(x_28);
x_58 = l_Lean_Name_mkStr4(x_4, x_28, x_39, x_57);
x_59 = l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__14;
lean_inc_ref(x_28);
x_60 = l_Lean_Name_mkStr4(x_4, x_28, x_39, x_59);
x_61 = l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__15;
x_62 = l_Lean_Name_mkStr4(x_4, x_28, x_39, x_61);
x_63 = l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__17;
x_64 = l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__19;
x_65 = l_Lean_addMacroScope(x_20, x_64, x_24);
x_66 = l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__21;
lean_inc(x_23);
x_67 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_67, 0, x_23);
lean_ctor_set(x_67, 1, x_63);
lean_ctor_set(x_67, 2, x_65);
lean_ctor_set(x_67, 3, x_66);
x_68 = l_Lean_TSyntax_getId(x_14);
lean_dec(x_14);
x_69 = l_Lean_instQuoteNameMkStr1___private__1(x_68);
lean_inc(x_26);
lean_inc(x_23);
x_70 = l_Lean_Syntax_node2(x_23, x_26, x_69, x_18);
lean_inc(x_23);
x_71 = l_Lean_Syntax_node2(x_23, x_45, x_67, x_70);
lean_inc(x_23);
x_72 = l_Lean_Syntax_node1(x_23, x_62, x_71);
lean_inc(x_23);
x_73 = l_Lean_Syntax_node2(x_23, x_60, x_72, x_29);
lean_inc(x_23);
x_74 = l_Lean_Syntax_node1(x_23, x_26, x_73);
lean_inc(x_23);
x_75 = l_Lean_Syntax_node1(x_23, x_58, x_74);
x_76 = l_Lean_Syntax_node4(x_23, x_19, x_33, x_38, x_56, x_75);
x_77 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_77, 0, x_76);
lean_ctor_set(x_77, 1, x_3);
return x_77;
}
block_96:
{
lean_object* x_90; lean_object* x_91; lean_object* x_92; 
lean_inc_ref(x_85);
x_90 = l_Array_append___redArg(x_85, x_89);
lean_dec_ref(x_89);
lean_inc(x_86);
lean_inc(x_83);
x_91 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_91, 0, x_83);
lean_ctor_set(x_91, 1, x_86);
lean_ctor_set(x_91, 2, x_90);
lean_inc_ref(x_85);
lean_inc(x_86);
lean_inc(x_83);
x_92 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_92, 0, x_83);
lean_ctor_set(x_92, 1, x_86);
lean_ctor_set(x_92, 2, x_85);
if (lean_obj_tag(x_81) == 1)
{
lean_object* x_93; lean_object* x_94; 
x_93 = lean_ctor_get(x_81, 0);
lean_inc(x_93);
lean_dec_ref(x_81);
x_94 = l_Array_mkArray1___redArg(x_93);
x_19 = x_80;
x_20 = x_79;
x_21 = x_91;
x_22 = x_82;
x_23 = x_83;
x_24 = x_84;
x_25 = x_85;
x_26 = x_86;
x_27 = x_87;
x_28 = x_88;
x_29 = x_92;
x_30 = x_94;
goto block_78;
}
else
{
lean_object* x_95; 
lean_dec(x_81);
x_95 = l_Lean_OptionDecl_declName___autoParam___closed__5;
x_19 = x_80;
x_20 = x_79;
x_21 = x_91;
x_22 = x_82;
x_23 = x_83;
x_24 = x_84;
x_25 = x_85;
x_26 = x_86;
x_27 = x_87;
x_28 = x_88;
x_29 = x_92;
x_30 = x_95;
goto block_78;
}
}
block_113:
{
lean_object* x_99; lean_object* x_100; lean_object* x_101; uint8_t x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; 
x_99 = lean_ctor_get(x_2, 1);
lean_inc(x_99);
x_100 = lean_ctor_get(x_2, 2);
lean_inc(x_100);
x_101 = lean_ctor_get(x_2, 5);
lean_inc(x_101);
lean_dec_ref(x_2);
x_102 = 0;
x_103 = l_Lean_SourceInfo_fromRef(x_101, x_102);
lean_dec(x_101);
x_104 = l_Lean_OptionDecl_declName___autoParam___closed__1;
x_105 = l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__22;
x_106 = l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__24;
x_107 = l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__26;
x_108 = l_Lean_OptionDecl_declName___autoParam___closed__9;
x_109 = l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__27;
if (lean_obj_tag(x_98) == 1)
{
lean_object* x_110; lean_object* x_111; 
x_110 = lean_ctor_get(x_98, 0);
lean_inc(x_110);
lean_dec_ref(x_98);
x_111 = l_Array_mkArray1___redArg(x_110);
x_79 = x_99;
x_80 = x_106;
x_81 = x_97;
x_82 = x_107;
x_83 = x_103;
x_84 = x_100;
x_85 = x_109;
x_86 = x_108;
x_87 = x_105;
x_88 = x_104;
x_89 = x_111;
goto block_96;
}
else
{
lean_object* x_112; 
lean_dec(x_98);
x_112 = l_Lean_OptionDecl_declName___autoParam___closed__5;
x_79 = x_99;
x_80 = x_106;
x_81 = x_97;
x_82 = x_107;
x_83 = x_103;
x_84 = x_100;
x_85 = x_109;
x_86 = x_108;
x_87 = x_105;
x_88 = x_104;
x_89 = x_112;
goto block_96;
}
}
block_120:
{
lean_object* x_115; 
x_115 = l_Lean_Syntax_getOptional_x3f(x_10);
lean_dec(x_10);
if (lean_obj_tag(x_115) == 0)
{
lean_object* x_116; 
x_116 = lean_box(0);
x_97 = x_114;
x_98 = x_116;
goto block_113;
}
else
{
uint8_t x_117; 
x_117 = !lean_is_exclusive(x_115);
if (x_117 == 0)
{
x_97 = x_114;
x_98 = x_115;
goto block_113;
}
else
{
lean_object* x_118; lean_object* x_119; 
x_118 = lean_ctor_get(x_115, 0);
lean_inc(x_118);
lean_dec(x_115);
x_119 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_119, 0, x_118);
x_97 = x_114;
x_98 = x_119;
goto block_113;
}
}
}
}
}
}
static lean_object* _init_l_Lean_Option_registerOption___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("registerOption", 14, 14);
return x_1;
}
}
static lean_object* _init_l_Lean_Option_registerOption___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = l_Lean_Option_registerOption___closed__0;
x_2 = l_Lean_Option_registerBuiltinOption___closed__0;
x_3 = l_Lean_OptionDecl_declName___autoParam___closed__0;
x_4 = l_Lean_Name_mkStr3(x_3, x_2, x_1);
return x_4;
}
}
static lean_object* _init_l_Lean_Option_registerOption___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__25;
x_2 = l_Lean_Name_mkStr1(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Option_registerOption___closed__3() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Option_registerOption___closed__2;
x_2 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Option_registerOption___closed__4() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("register_option", 15, 15);
return x_1;
}
}
static lean_object* _init_l_Lean_Option_registerOption___closed__5() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Option_registerOption___closed__4;
x_2 = lean_alloc_ctor(5, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Option_registerOption___closed__6() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = l_Lean_Option_registerOption___closed__5;
x_2 = l_Lean_Option_registerOption___closed__3;
x_3 = l_Lean_Option_registerBuiltinOption___closed__4;
x_4 = lean_alloc_ctor(2, 3, 0);
lean_ctor_set(x_4, 0, x_3);
lean_ctor_set(x_4, 1, x_2);
lean_ctor_set(x_4, 2, x_1);
return x_4;
}
}
static lean_object* _init_l_Lean_Option_registerOption___closed__7() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = l_Lean_Option_registerBuiltinOption___closed__21;
x_2 = l_Lean_Option_registerOption___closed__6;
x_3 = l_Lean_Option_registerBuiltinOption___closed__4;
x_4 = lean_alloc_ctor(2, 3, 0);
lean_ctor_set(x_4, 0, x_3);
lean_ctor_set(x_4, 1, x_2);
lean_ctor_set(x_4, 2, x_1);
return x_4;
}
}
static lean_object* _init_l_Lean_Option_registerOption___closed__8() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = l_Lean_Option_registerBuiltinOption___closed__24;
x_2 = l_Lean_Option_registerOption___closed__7;
x_3 = l_Lean_Option_registerBuiltinOption___closed__4;
x_4 = lean_alloc_ctor(2, 3, 0);
lean_ctor_set(x_4, 0, x_3);
lean_ctor_set(x_4, 1, x_2);
lean_ctor_set(x_4, 2, x_1);
return x_4;
}
}
static lean_object* _init_l_Lean_Option_registerOption___closed__9() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = l_Lean_Option_registerBuiltinOption___closed__28;
x_2 = l_Lean_Option_registerOption___closed__8;
x_3 = l_Lean_Option_registerBuiltinOption___closed__4;
x_4 = lean_alloc_ctor(2, 3, 0);
lean_ctor_set(x_4, 0, x_3);
lean_ctor_set(x_4, 1, x_2);
lean_ctor_set(x_4, 2, x_1);
return x_4;
}
}
static lean_object* _init_l_Lean_Option_registerOption___closed__10() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = l_Lean_Option_registerBuiltinOption___closed__31;
x_2 = l_Lean_Option_registerOption___closed__9;
x_3 = l_Lean_Option_registerBuiltinOption___closed__4;
x_4 = lean_alloc_ctor(2, 3, 0);
lean_ctor_set(x_4, 0, x_3);
lean_ctor_set(x_4, 1, x_2);
lean_ctor_set(x_4, 2, x_1);
return x_4;
}
}
static lean_object* _init_l_Lean_Option_registerOption___closed__11() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = l_Lean_Option_registerBuiltinOption___closed__28;
x_2 = l_Lean_Option_registerOption___closed__10;
x_3 = l_Lean_Option_registerBuiltinOption___closed__4;
x_4 = lean_alloc_ctor(2, 3, 0);
lean_ctor_set(x_4, 0, x_3);
lean_ctor_set(x_4, 1, x_2);
lean_ctor_set(x_4, 2, x_1);
return x_4;
}
}
static lean_object* _init_l_Lean_Option_registerOption___closed__12() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = l_Lean_Option_registerOption___closed__11;
x_2 = lean_unsigned_to_nat(1022u);
x_3 = l_Lean_Option_registerOption___closed__1;
x_4 = lean_alloc_ctor(3, 3, 0);
lean_ctor_set(x_4, 0, x_3);
lean_ctor_set(x_4, 1, x_2);
lean_ctor_set(x_4, 2, x_1);
return x_4;
}
}
static lean_object* _init_l_Lean_Option_registerOption() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_Option_registerOption___closed__12;
return x_1;
}
}
static lean_object* _init_l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerOption__1___closed__0() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__0;
x_2 = l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__22;
x_3 = l_Lean_OptionDecl_declName___autoParam___closed__1;
x_4 = l_Lean_OptionDecl_declName___autoParam___closed__0;
x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1);
return x_5;
}
}
static lean_object* _init_l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerOption__1___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__2;
x_2 = l_Lean_OptionDecl_declName___autoParam___closed__14;
x_3 = l_Lean_OptionDecl_declName___autoParam___closed__1;
x_4 = l_Lean_OptionDecl_declName___autoParam___closed__0;
x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1);
return x_5;
}
}
static lean_object* _init_l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerOption__1___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__4;
x_2 = l_Lean_OptionDecl_declName___autoParam___closed__14;
x_3 = l_Lean_OptionDecl_declName___autoParam___closed__1;
x_4 = l_Lean_OptionDecl_declName___autoParam___closed__0;
x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1);
return x_5;
}
}
static lean_object* _init_l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerOption__1___closed__3() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__13;
x_2 = l_Lean_OptionDecl_declName___autoParam___closed__14;
x_3 = l_Lean_OptionDecl_declName___autoParam___closed__1;
x_4 = l_Lean_OptionDecl_declName___autoParam___closed__0;
x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1);
return x_5;
}
}
static lean_object* _init_l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerOption__1___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__14;
x_2 = l_Lean_OptionDecl_declName___autoParam___closed__14;
x_3 = l_Lean_OptionDecl_declName___autoParam___closed__1;
x_4 = l_Lean_OptionDecl_declName___autoParam___closed__0;
x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1);
return x_5;
}
}
static lean_object* _init_l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerOption__1___closed__5() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__15;
x_2 = l_Lean_OptionDecl_declName___autoParam___closed__14;
x_3 = l_Lean_OptionDecl_declName___autoParam___closed__1;
x_4 = l_Lean_OptionDecl_declName___autoParam___closed__0;
x_5 = l_Lean_Name_mkStr4(x_4, x_3, x_2, x_1);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerOption__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; uint8_t x_5; 
x_4 = l_Lean_Option_registerOption___closed__1;
lean_inc(x_1);
x_5 = l_Lean_Syntax_isOfKind(x_1, x_4);
if (x_5 == 0)
{
lean_object* x_6; lean_object* x_7; 
lean_dec_ref(x_2);
lean_dec(x_1);
x_6 = lean_box(1);
x_7 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_7, 0, x_6);
lean_ctor_set(x_7, 1, x_3);
return x_7;
}
else
{
lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; uint8_t x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; 
x_8 = lean_ctor_get(x_2, 1);
lean_inc(x_8);
x_9 = lean_ctor_get(x_2, 2);
lean_inc(x_9);
x_10 = lean_ctor_get(x_2, 5);
lean_inc(x_10);
lean_dec_ref(x_2);
x_11 = lean_unsigned_to_nat(0u);
x_12 = l_Lean_Syntax_getArg(x_1, x_11);
x_13 = lean_unsigned_to_nat(2u);
x_14 = l_Lean_Syntax_getArg(x_1, x_13);
x_15 = lean_unsigned_to_nat(4u);
x_16 = l_Lean_Syntax_getArg(x_1, x_15);
x_17 = lean_unsigned_to_nat(6u);
x_18 = l_Lean_Syntax_getArg(x_1, x_17);
lean_dec(x_1);
x_19 = 0;
x_20 = l_Lean_SourceInfo_fromRef(x_10, x_19);
lean_dec(x_10);
x_21 = l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__23;
x_22 = l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__24;
x_23 = l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerOption__1___closed__0;
lean_inc(x_20);
x_24 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_24, 0, x_20);
lean_ctor_set(x_24, 1, x_21);
lean_inc(x_20);
x_25 = l_Lean_Syntax_node1(x_20, x_23, x_24);
x_26 = l_Lean_OptionDecl_declName___autoParam___closed__9;
x_27 = l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerOption__1___closed__1;
x_28 = l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__3;
lean_inc(x_20);
x_29 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_29, 0, x_20);
lean_ctor_set(x_29, 1, x_28);
x_30 = l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerOption__1___closed__2;
x_31 = l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__6;
x_32 = l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__7;
lean_inc(x_9);
lean_inc(x_8);
x_33 = l_Lean_addMacroScope(x_8, x_32, x_9);
x_34 = l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__11;
lean_inc(x_20);
x_35 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_35, 0, x_20);
lean_ctor_set(x_35, 1, x_31);
lean_ctor_set(x_35, 2, x_33);
lean_ctor_set(x_35, 3, x_34);
lean_inc(x_20);
x_36 = l_Lean_Syntax_node1(x_20, x_26, x_16);
lean_inc(x_20);
x_37 = l_Lean_Syntax_node2(x_20, x_30, x_35, x_36);
lean_inc(x_20);
x_38 = l_Lean_Syntax_node2(x_20, x_27, x_29, x_37);
x_39 = l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__12;
lean_inc(x_20);
x_40 = lean_alloc_ctor(2, 2, 0);
lean_ctor_set(x_40, 0, x_20);
lean_ctor_set(x_40, 1, x_39);
lean_inc(x_14);
lean_inc(x_20);
x_41 = l_Lean_Syntax_node3(x_20, x_26, x_14, x_38, x_40);
x_42 = l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerOption__1___closed__3;
x_43 = l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerOption__1___closed__4;
x_44 = l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerOption__1___closed__5;
x_45 = l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__17;
x_46 = l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__19;
x_47 = l_Lean_addMacroScope(x_8, x_46, x_9);
x_48 = l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__21;
lean_inc(x_20);
x_49 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_49, 0, x_20);
lean_ctor_set(x_49, 1, x_45);
lean_ctor_set(x_49, 2, x_47);
lean_ctor_set(x_49, 3, x_48);
x_50 = l_Lean_TSyntax_getId(x_14);
lean_dec(x_14);
x_51 = l_Lean_instQuoteNameMkStr1___private__1(x_50);
lean_inc(x_20);
x_52 = l_Lean_Syntax_node2(x_20, x_26, x_51, x_18);
lean_inc(x_20);
x_53 = l_Lean_Syntax_node2(x_20, x_30, x_49, x_52);
lean_inc(x_20);
x_54 = l_Lean_Syntax_node1(x_20, x_44, x_53);
x_55 = l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__27;
lean_inc(x_20);
x_56 = lean_alloc_ctor(1, 3, 0);
lean_ctor_set(x_56, 0, x_20);
lean_ctor_set(x_56, 1, x_26);
lean_ctor_set(x_56, 2, x_55);
lean_inc(x_20);
x_57 = l_Lean_Syntax_node2(x_20, x_43, x_54, x_56);
lean_inc(x_20);
x_58 = l_Lean_Syntax_node1(x_20, x_26, x_57);
lean_inc(x_20);
x_59 = l_Lean_Syntax_node1(x_20, x_42, x_58);
x_60 = l_Lean_Syntax_node4(x_20, x_22, x_12, x_25, x_41, x_59);
x_61 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_61, 0, x_60);
lean_ctor_set(x_61, 1, x_3);
return x_61;
}
}
}
lean_object* initialize_Lean_ImportingFlag(uint8_t builtin);
lean_object* initialize_Lean_Data_KVMap(uint8_t builtin);
lean_object* initialize_Lean_Data_NameMap_Basic(uint8_t builtin);
static bool _G_initialized = false;
LEAN_EXPORT lean_object* initialize_Lean_Data_Options(uint8_t builtin) {
lean_object * res;
if (_G_initialized) return lean_io_result_mk_ok(lean_box(0));
_G_initialized = true;
res = initialize_Lean_ImportingFlag(builtin);
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
res = initialize_Lean_Data_KVMap(builtin);
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
res = initialize_Lean_Data_NameMap_Basic(builtin);
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
l_Lean_Options_empty = _init_l_Lean_Options_empty();
lean_mark_persistent(l_Lean_Options_empty);
l_Lean_instInhabitedOptions = _init_l_Lean_instInhabitedOptions();
lean_mark_persistent(l_Lean_instInhabitedOptions);
l_Lean_instToStringOptions = _init_l_Lean_instToStringOptions();
lean_mark_persistent(l_Lean_instToStringOptions);
l_Lean_instBEqOptions___closed__0 = _init_l_Lean_instBEqOptions___closed__0();
lean_mark_persistent(l_Lean_instBEqOptions___closed__0);
l_Lean_instBEqOptions = _init_l_Lean_instBEqOptions();
lean_mark_persistent(l_Lean_instBEqOptions);
l_Lean_OptionDecl_declName___autoParam___closed__0 = _init_l_Lean_OptionDecl_declName___autoParam___closed__0();
lean_mark_persistent(l_Lean_OptionDecl_declName___autoParam___closed__0);
l_Lean_OptionDecl_declName___autoParam___closed__1 = _init_l_Lean_OptionDecl_declName___autoParam___closed__1();
lean_mark_persistent(l_Lean_OptionDecl_declName___autoParam___closed__1);
l_Lean_OptionDecl_declName___autoParam___closed__2 = _init_l_Lean_OptionDecl_declName___autoParam___closed__2();
lean_mark_persistent(l_Lean_OptionDecl_declName___autoParam___closed__2);
l_Lean_OptionDecl_declName___autoParam___closed__3 = _init_l_Lean_OptionDecl_declName___autoParam___closed__3();
lean_mark_persistent(l_Lean_OptionDecl_declName___autoParam___closed__3);
l_Lean_OptionDecl_declName___autoParam___closed__4 = _init_l_Lean_OptionDecl_declName___autoParam___closed__4();
lean_mark_persistent(l_Lean_OptionDecl_declName___autoParam___closed__4);
l_Lean_OptionDecl_declName___autoParam___closed__5 = _init_l_Lean_OptionDecl_declName___autoParam___closed__5();
lean_mark_persistent(l_Lean_OptionDecl_declName___autoParam___closed__5);
l_Lean_OptionDecl_declName___autoParam___closed__6 = _init_l_Lean_OptionDecl_declName___autoParam___closed__6();
lean_mark_persistent(l_Lean_OptionDecl_declName___autoParam___closed__6);
l_Lean_OptionDecl_declName___autoParam___closed__7 = _init_l_Lean_OptionDecl_declName___autoParam___closed__7();
lean_mark_persistent(l_Lean_OptionDecl_declName___autoParam___closed__7);
l_Lean_OptionDecl_declName___autoParam___closed__8 = _init_l_Lean_OptionDecl_declName___autoParam___closed__8();
lean_mark_persistent(l_Lean_OptionDecl_declName___autoParam___closed__8);
l_Lean_OptionDecl_declName___autoParam___closed__9 = _init_l_Lean_OptionDecl_declName___autoParam___closed__9();
lean_mark_persistent(l_Lean_OptionDecl_declName___autoParam___closed__9);
l_Lean_OptionDecl_declName___autoParam___closed__10 = _init_l_Lean_OptionDecl_declName___autoParam___closed__10();
lean_mark_persistent(l_Lean_OptionDecl_declName___autoParam___closed__10);
l_Lean_OptionDecl_declName___autoParam___closed__11 = _init_l_Lean_OptionDecl_declName___autoParam___closed__11();
lean_mark_persistent(l_Lean_OptionDecl_declName___autoParam___closed__11);
l_Lean_OptionDecl_declName___autoParam___closed__12 = _init_l_Lean_OptionDecl_declName___autoParam___closed__12();
lean_mark_persistent(l_Lean_OptionDecl_declName___autoParam___closed__12);
l_Lean_OptionDecl_declName___autoParam___closed__13 = _init_l_Lean_OptionDecl_declName___autoParam___closed__13();
lean_mark_persistent(l_Lean_OptionDecl_declName___autoParam___closed__13);
l_Lean_OptionDecl_declName___autoParam___closed__14 = _init_l_Lean_OptionDecl_declName___autoParam___closed__14();
lean_mark_persistent(l_Lean_OptionDecl_declName___autoParam___closed__14);
l_Lean_OptionDecl_declName___autoParam___closed__15 = _init_l_Lean_OptionDecl_declName___autoParam___closed__15();
lean_mark_persistent(l_Lean_OptionDecl_declName___autoParam___closed__15);
l_Lean_OptionDecl_declName___autoParam___closed__16 = _init_l_Lean_OptionDecl_declName___autoParam___closed__16();
lean_mark_persistent(l_Lean_OptionDecl_declName___autoParam___closed__16);
l_Lean_OptionDecl_declName___autoParam___closed__17 = _init_l_Lean_OptionDecl_declName___autoParam___closed__17();
lean_mark_persistent(l_Lean_OptionDecl_declName___autoParam___closed__17);
l_Lean_OptionDecl_declName___autoParam___closed__18 = _init_l_Lean_OptionDecl_declName___autoParam___closed__18();
lean_mark_persistent(l_Lean_OptionDecl_declName___autoParam___closed__18);
l_Lean_OptionDecl_declName___autoParam___closed__19 = _init_l_Lean_OptionDecl_declName___autoParam___closed__19();
lean_mark_persistent(l_Lean_OptionDecl_declName___autoParam___closed__19);
l_Lean_OptionDecl_declName___autoParam___closed__20 = _init_l_Lean_OptionDecl_declName___autoParam___closed__20();
lean_mark_persistent(l_Lean_OptionDecl_declName___autoParam___closed__20);
l_Lean_OptionDecl_declName___autoParam___closed__21 = _init_l_Lean_OptionDecl_declName___autoParam___closed__21();
lean_mark_persistent(l_Lean_OptionDecl_declName___autoParam___closed__21);
l_Lean_OptionDecl_declName___autoParam___closed__22 = _init_l_Lean_OptionDecl_declName___autoParam___closed__22();
lean_mark_persistent(l_Lean_OptionDecl_declName___autoParam___closed__22);
l_Lean_OptionDecl_declName___autoParam___closed__23 = _init_l_Lean_OptionDecl_declName___autoParam___closed__23();
lean_mark_persistent(l_Lean_OptionDecl_declName___autoParam___closed__23);
l_Lean_OptionDecl_declName___autoParam___closed__24 = _init_l_Lean_OptionDecl_declName___autoParam___closed__24();
lean_mark_persistent(l_Lean_OptionDecl_declName___autoParam___closed__24);
l_Lean_OptionDecl_declName___autoParam___closed__25 = _init_l_Lean_OptionDecl_declName___autoParam___closed__25();
lean_mark_persistent(l_Lean_OptionDecl_declName___autoParam___closed__25);
l_Lean_OptionDecl_declName___autoParam___closed__26 = _init_l_Lean_OptionDecl_declName___autoParam___closed__26();
lean_mark_persistent(l_Lean_OptionDecl_declName___autoParam___closed__26);
l_Lean_OptionDecl_declName___autoParam___closed__27 = _init_l_Lean_OptionDecl_declName___autoParam___closed__27();
lean_mark_persistent(l_Lean_OptionDecl_declName___autoParam___closed__27);
l_Lean_OptionDecl_declName___autoParam___closed__28 = _init_l_Lean_OptionDecl_declName___autoParam___closed__28();
lean_mark_persistent(l_Lean_OptionDecl_declName___autoParam___closed__28);
l_Lean_OptionDecl_declName___autoParam = _init_l_Lean_OptionDecl_declName___autoParam();
lean_mark_persistent(l_Lean_OptionDecl_declName___autoParam);
l_Lean_instInhabitedOptionDecl_default___closed__0 = _init_l_Lean_instInhabitedOptionDecl_default___closed__0();
lean_mark_persistent(l_Lean_instInhabitedOptionDecl_default___closed__0);
l_Lean_instInhabitedOptionDecl_default___closed__1 = _init_l_Lean_instInhabitedOptionDecl_default___closed__1();
lean_mark_persistent(l_Lean_instInhabitedOptionDecl_default___closed__1);
l_Lean_instInhabitedOptionDecl_default___closed__2 = _init_l_Lean_instInhabitedOptionDecl_default___closed__2();
lean_mark_persistent(l_Lean_instInhabitedOptionDecl_default___closed__2);
l_Lean_instInhabitedOptionDecl_default = _init_l_Lean_instInhabitedOptionDecl_default();
lean_mark_persistent(l_Lean_instInhabitedOptionDecl_default);
l_Lean_instInhabitedOptionDecl = _init_l_Lean_instInhabitedOptionDecl();
lean_mark_persistent(l_Lean_instInhabitedOptionDecl);
l_Lean_OptionDecl_fullDescr___closed__0 = _init_l_Lean_OptionDecl_fullDescr___closed__0();
lean_mark_persistent(l_Lean_OptionDecl_fullDescr___closed__0);
l_Lean_OptionDecl_fullDescr___closed__1 = _init_l_Lean_OptionDecl_fullDescr___closed__1();
lean_mark_persistent(l_Lean_OptionDecl_fullDescr___closed__1);
l_Lean_OptionDecl_fullDescr___closed__2 = _init_l_Lean_OptionDecl_fullDescr___closed__2();
lean_mark_persistent(l_Lean_OptionDecl_fullDescr___closed__2);
l_Lean_OptionDecl_fullDescr___closed__3 = _init_l_Lean_OptionDecl_fullDescr___closed__3();
lean_mark_persistent(l_Lean_OptionDecl_fullDescr___closed__3);
l_Lean_instInhabitedOptionDecls = _init_l_Lean_instInhabitedOptionDecls();
lean_mark_persistent(l_Lean_instInhabitedOptionDecls);
if (builtin) {res = l___private_Lean_Data_Options_0__Lean_initFn_00___x40_Lean_Data_Options_2861175937____hygCtx___hyg_2_();
if (lean_io_result_is_error(res)) return res;
l___private_Lean_Data_Options_0__Lean_optionDeclsRef = lean_io_result_get_value(res);
lean_mark_persistent(l___private_Lean_Data_Options_0__Lean_optionDeclsRef);
lean_dec_ref(res);
}l_Lean_registerOption___closed__0 = _init_l_Lean_registerOption___closed__0();
lean_mark_persistent(l_Lean_registerOption___closed__0);
l_Lean_registerOption___closed__1 = _init_l_Lean_registerOption___closed__1();
lean_mark_persistent(l_Lean_registerOption___closed__1);
l_Lean_registerOption___closed__2 = _init_l_Lean_registerOption___closed__2();
lean_mark_persistent(l_Lean_registerOption___closed__2);
l_Lean_registerOption___closed__3 = _init_l_Lean_registerOption___closed__3();
lean_mark_persistent(l_Lean_registerOption___closed__3);
l_Lean_registerOption___closed__4 = _init_l_Lean_registerOption___closed__4();
lean_mark_persistent(l_Lean_registerOption___closed__4);
l_Lean_getOptionDeclsArray___closed__0 = _init_l_Lean_getOptionDeclsArray___closed__0();
lean_mark_persistent(l_Lean_getOptionDeclsArray___closed__0);
l_Lean_getOptionDecl___closed__0 = _init_l_Lean_getOptionDecl___closed__0();
lean_mark_persistent(l_Lean_getOptionDecl___closed__0);
l_Lean_getOptionDecl___closed__1 = _init_l_Lean_getOptionDecl___closed__1();
lean_mark_persistent(l_Lean_getOptionDecl___closed__1);
l_Lean_withInPattern___redArg___lam__0___closed__0 = _init_l_Lean_withInPattern___redArg___lam__0___closed__0();
lean_mark_persistent(l_Lean_withInPattern___redArg___lam__0___closed__0);
l_Lean_withInPattern___redArg___lam__0___closed__1 = _init_l_Lean_withInPattern___redArg___lam__0___closed__1();
lean_mark_persistent(l_Lean_withInPattern___redArg___lam__0___closed__1);
l___auto_00___x40_Lean_Data_Options_1379820584____hygCtx___hyg_20_ = _init_l___auto_00___x40_Lean_Data_Options_1379820584____hygCtx___hyg_20_();
lean_mark_persistent(l___auto_00___x40_Lean_Data_Options_1379820584____hygCtx___hyg_20_);
l_Lean_Option_registerBuiltinOption___closed__0 = _init_l_Lean_Option_registerBuiltinOption___closed__0();
lean_mark_persistent(l_Lean_Option_registerBuiltinOption___closed__0);
l_Lean_Option_registerBuiltinOption___closed__1 = _init_l_Lean_Option_registerBuiltinOption___closed__1();
lean_mark_persistent(l_Lean_Option_registerBuiltinOption___closed__1);
l_Lean_Option_registerBuiltinOption___closed__2 = _init_l_Lean_Option_registerBuiltinOption___closed__2();
lean_mark_persistent(l_Lean_Option_registerBuiltinOption___closed__2);
l_Lean_Option_registerBuiltinOption___closed__3 = _init_l_Lean_Option_registerBuiltinOption___closed__3();
lean_mark_persistent(l_Lean_Option_registerBuiltinOption___closed__3);
l_Lean_Option_registerBuiltinOption___closed__4 = _init_l_Lean_Option_registerBuiltinOption___closed__4();
lean_mark_persistent(l_Lean_Option_registerBuiltinOption___closed__4);
l_Lean_Option_registerBuiltinOption___closed__5 = _init_l_Lean_Option_registerBuiltinOption___closed__5();
lean_mark_persistent(l_Lean_Option_registerBuiltinOption___closed__5);
l_Lean_Option_registerBuiltinOption___closed__6 = _init_l_Lean_Option_registerBuiltinOption___closed__6();
lean_mark_persistent(l_Lean_Option_registerBuiltinOption___closed__6);
l_Lean_Option_registerBuiltinOption___closed__7 = _init_l_Lean_Option_registerBuiltinOption___closed__7();
lean_mark_persistent(l_Lean_Option_registerBuiltinOption___closed__7);
l_Lean_Option_registerBuiltinOption___closed__8 = _init_l_Lean_Option_registerBuiltinOption___closed__8();
lean_mark_persistent(l_Lean_Option_registerBuiltinOption___closed__8);
l_Lean_Option_registerBuiltinOption___closed__9 = _init_l_Lean_Option_registerBuiltinOption___closed__9();
lean_mark_persistent(l_Lean_Option_registerBuiltinOption___closed__9);
l_Lean_Option_registerBuiltinOption___closed__10 = _init_l_Lean_Option_registerBuiltinOption___closed__10();
lean_mark_persistent(l_Lean_Option_registerBuiltinOption___closed__10);
l_Lean_Option_registerBuiltinOption___closed__11 = _init_l_Lean_Option_registerBuiltinOption___closed__11();
lean_mark_persistent(l_Lean_Option_registerBuiltinOption___closed__11);
l_Lean_Option_registerBuiltinOption___closed__12 = _init_l_Lean_Option_registerBuiltinOption___closed__12();
lean_mark_persistent(l_Lean_Option_registerBuiltinOption___closed__12);
l_Lean_Option_registerBuiltinOption___closed__13 = _init_l_Lean_Option_registerBuiltinOption___closed__13();
lean_mark_persistent(l_Lean_Option_registerBuiltinOption___closed__13);
l_Lean_Option_registerBuiltinOption___closed__14 = _init_l_Lean_Option_registerBuiltinOption___closed__14();
lean_mark_persistent(l_Lean_Option_registerBuiltinOption___closed__14);
l_Lean_Option_registerBuiltinOption___closed__15 = _init_l_Lean_Option_registerBuiltinOption___closed__15();
lean_mark_persistent(l_Lean_Option_registerBuiltinOption___closed__15);
l_Lean_Option_registerBuiltinOption___closed__16 = _init_l_Lean_Option_registerBuiltinOption___closed__16();
lean_mark_persistent(l_Lean_Option_registerBuiltinOption___closed__16);
l_Lean_Option_registerBuiltinOption___closed__17 = _init_l_Lean_Option_registerBuiltinOption___closed__17();
lean_mark_persistent(l_Lean_Option_registerBuiltinOption___closed__17);
l_Lean_Option_registerBuiltinOption___closed__18 = _init_l_Lean_Option_registerBuiltinOption___closed__18();
lean_mark_persistent(l_Lean_Option_registerBuiltinOption___closed__18);
l_Lean_Option_registerBuiltinOption___closed__19 = _init_l_Lean_Option_registerBuiltinOption___closed__19();
lean_mark_persistent(l_Lean_Option_registerBuiltinOption___closed__19);
l_Lean_Option_registerBuiltinOption___closed__20 = _init_l_Lean_Option_registerBuiltinOption___closed__20();
lean_mark_persistent(l_Lean_Option_registerBuiltinOption___closed__20);
l_Lean_Option_registerBuiltinOption___closed__21 = _init_l_Lean_Option_registerBuiltinOption___closed__21();
lean_mark_persistent(l_Lean_Option_registerBuiltinOption___closed__21);
l_Lean_Option_registerBuiltinOption___closed__22 = _init_l_Lean_Option_registerBuiltinOption___closed__22();
lean_mark_persistent(l_Lean_Option_registerBuiltinOption___closed__22);
l_Lean_Option_registerBuiltinOption___closed__23 = _init_l_Lean_Option_registerBuiltinOption___closed__23();
lean_mark_persistent(l_Lean_Option_registerBuiltinOption___closed__23);
l_Lean_Option_registerBuiltinOption___closed__24 = _init_l_Lean_Option_registerBuiltinOption___closed__24();
lean_mark_persistent(l_Lean_Option_registerBuiltinOption___closed__24);
l_Lean_Option_registerBuiltinOption___closed__25 = _init_l_Lean_Option_registerBuiltinOption___closed__25();
lean_mark_persistent(l_Lean_Option_registerBuiltinOption___closed__25);
l_Lean_Option_registerBuiltinOption___closed__26 = _init_l_Lean_Option_registerBuiltinOption___closed__26();
lean_mark_persistent(l_Lean_Option_registerBuiltinOption___closed__26);
l_Lean_Option_registerBuiltinOption___closed__27 = _init_l_Lean_Option_registerBuiltinOption___closed__27();
lean_mark_persistent(l_Lean_Option_registerBuiltinOption___closed__27);
l_Lean_Option_registerBuiltinOption___closed__28 = _init_l_Lean_Option_registerBuiltinOption___closed__28();
lean_mark_persistent(l_Lean_Option_registerBuiltinOption___closed__28);
l_Lean_Option_registerBuiltinOption___closed__29 = _init_l_Lean_Option_registerBuiltinOption___closed__29();
lean_mark_persistent(l_Lean_Option_registerBuiltinOption___closed__29);
l_Lean_Option_registerBuiltinOption___closed__30 = _init_l_Lean_Option_registerBuiltinOption___closed__30();
lean_mark_persistent(l_Lean_Option_registerBuiltinOption___closed__30);
l_Lean_Option_registerBuiltinOption___closed__31 = _init_l_Lean_Option_registerBuiltinOption___closed__31();
lean_mark_persistent(l_Lean_Option_registerBuiltinOption___closed__31);
l_Lean_Option_registerBuiltinOption___closed__32 = _init_l_Lean_Option_registerBuiltinOption___closed__32();
lean_mark_persistent(l_Lean_Option_registerBuiltinOption___closed__32);
l_Lean_Option_registerBuiltinOption___closed__33 = _init_l_Lean_Option_registerBuiltinOption___closed__33();
lean_mark_persistent(l_Lean_Option_registerBuiltinOption___closed__33);
l_Lean_Option_registerBuiltinOption___closed__34 = _init_l_Lean_Option_registerBuiltinOption___closed__34();
lean_mark_persistent(l_Lean_Option_registerBuiltinOption___closed__34);
l_Lean_Option_registerBuiltinOption = _init_l_Lean_Option_registerBuiltinOption();
lean_mark_persistent(l_Lean_Option_registerBuiltinOption);
l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__0 = _init_l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__0();
lean_mark_persistent(l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__0);
l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__1 = _init_l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__1();
lean_mark_persistent(l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__1);
l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__2 = _init_l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__2();
lean_mark_persistent(l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__2);
l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__3 = _init_l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__3();
lean_mark_persistent(l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__3);
l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__4 = _init_l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__4();
lean_mark_persistent(l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__4);
l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__5 = _init_l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__5();
lean_mark_persistent(l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__5);
l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__6 = _init_l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__6();
lean_mark_persistent(l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__6);
l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__7 = _init_l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__7();
lean_mark_persistent(l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__7);
l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__8 = _init_l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__8();
lean_mark_persistent(l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__8);
l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__9 = _init_l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__9();
lean_mark_persistent(l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__9);
l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__10 = _init_l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__10();
lean_mark_persistent(l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__10);
l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__11 = _init_l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__11();
lean_mark_persistent(l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__11);
l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__12 = _init_l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__12();
lean_mark_persistent(l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__12);
l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__13 = _init_l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__13();
lean_mark_persistent(l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__13);
l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__14 = _init_l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__14();
lean_mark_persistent(l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__14);
l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__15 = _init_l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__15();
lean_mark_persistent(l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__15);
l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__16 = _init_l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__16();
lean_mark_persistent(l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__16);
l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__17 = _init_l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__17();
lean_mark_persistent(l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__17);
l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__18 = _init_l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__18();
lean_mark_persistent(l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__18);
l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__19 = _init_l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__19();
lean_mark_persistent(l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__19);
l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__20 = _init_l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__20();
lean_mark_persistent(l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__20);
l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__21 = _init_l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__21();
lean_mark_persistent(l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__21);
l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__22 = _init_l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__22();
lean_mark_persistent(l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__22);
l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__23 = _init_l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__23();
lean_mark_persistent(l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__23);
l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__24 = _init_l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__24();
lean_mark_persistent(l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__24);
l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__25 = _init_l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__25();
lean_mark_persistent(l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__25);
l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__26 = _init_l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__26();
lean_mark_persistent(l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__26);
l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__27 = _init_l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__27();
lean_mark_persistent(l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerBuiltinOption__1___closed__27);
l_Lean_Option_registerOption___closed__0 = _init_l_Lean_Option_registerOption___closed__0();
lean_mark_persistent(l_Lean_Option_registerOption___closed__0);
l_Lean_Option_registerOption___closed__1 = _init_l_Lean_Option_registerOption___closed__1();
lean_mark_persistent(l_Lean_Option_registerOption___closed__1);
l_Lean_Option_registerOption___closed__2 = _init_l_Lean_Option_registerOption___closed__2();
lean_mark_persistent(l_Lean_Option_registerOption___closed__2);
l_Lean_Option_registerOption___closed__3 = _init_l_Lean_Option_registerOption___closed__3();
lean_mark_persistent(l_Lean_Option_registerOption___closed__3);
l_Lean_Option_registerOption___closed__4 = _init_l_Lean_Option_registerOption___closed__4();
lean_mark_persistent(l_Lean_Option_registerOption___closed__4);
l_Lean_Option_registerOption___closed__5 = _init_l_Lean_Option_registerOption___closed__5();
lean_mark_persistent(l_Lean_Option_registerOption___closed__5);
l_Lean_Option_registerOption___closed__6 = _init_l_Lean_Option_registerOption___closed__6();
lean_mark_persistent(l_Lean_Option_registerOption___closed__6);
l_Lean_Option_registerOption___closed__7 = _init_l_Lean_Option_registerOption___closed__7();
lean_mark_persistent(l_Lean_Option_registerOption___closed__7);
l_Lean_Option_registerOption___closed__8 = _init_l_Lean_Option_registerOption___closed__8();
lean_mark_persistent(l_Lean_Option_registerOption___closed__8);
l_Lean_Option_registerOption___closed__9 = _init_l_Lean_Option_registerOption___closed__9();
lean_mark_persistent(l_Lean_Option_registerOption___closed__9);
l_Lean_Option_registerOption___closed__10 = _init_l_Lean_Option_registerOption___closed__10();
lean_mark_persistent(l_Lean_Option_registerOption___closed__10);
l_Lean_Option_registerOption___closed__11 = _init_l_Lean_Option_registerOption___closed__11();
lean_mark_persistent(l_Lean_Option_registerOption___closed__11);
l_Lean_Option_registerOption___closed__12 = _init_l_Lean_Option_registerOption___closed__12();
lean_mark_persistent(l_Lean_Option_registerOption___closed__12);
l_Lean_Option_registerOption = _init_l_Lean_Option_registerOption();
lean_mark_persistent(l_Lean_Option_registerOption);
l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerOption__1___closed__0 = _init_l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerOption__1___closed__0();
lean_mark_persistent(l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerOption__1___closed__0);
l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerOption__1___closed__1 = _init_l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerOption__1___closed__1();
lean_mark_persistent(l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerOption__1___closed__1);
l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerOption__1___closed__2 = _init_l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerOption__1___closed__2();
lean_mark_persistent(l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerOption__1___closed__2);
l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerOption__1___closed__3 = _init_l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerOption__1___closed__3();
lean_mark_persistent(l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerOption__1___closed__3);
l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerOption__1___closed__4 = _init_l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerOption__1___closed__4();
lean_mark_persistent(l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerOption__1___closed__4);
l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerOption__1___closed__5 = _init_l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerOption__1___closed__5();
lean_mark_persistent(l_Lean_Option___aux__Lean__Data__Options______macroRules__Lean__Option__registerOption__1___closed__5);
return lean_io_result_mk_ok(lean_box(0));
}
#ifdef __cplusplus
}
#endif
